Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19442] Windows: ti build failed when logo image assets with invalid dimension exits

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-09-30T09:02:36.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 5.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-09-01T01:24:37.000+0000
Updated2017-03-16T22:32:26.000+0000

Description

ti build failes when Ti project has special kind of image assets (Logo.png, SplashScreen.png) with invalid dimension. This happens especially when you bring Ti project from other platforms which already has splash screen / app icon assets, like [Movies](https://github.com/appcelerator/movies) app. {noformat} [ERROR] 6>C:\movies\phone.x86\Package.appxmanifest(40,11): error APPX1619: App manifes references the square 150x150 logo image 'Logo.png' which does not have valid dimensions. It must be 150x150 pixels. [C:\movies\phone.x86\Movies.vcxproj] 6>Done Building Project "C:\movies\phone.x86\Movies.vcxproj" (default targets) -- LED. -- FAILED. {noformat} Possible workaround would be to convert these images to valid dimension at pre-build, or just ignore these special assets only when it has invalid dimension.

Comments

  1. Chris Barber 2015-09-10

    To check the size of these images, we use the png-size NPM module. It works pretty great. To resize images, I wrote a cross-platform Java CLI tool that uses imgscalr for mobile web. I use it to resize the DefaultIcon.png to generate missing app icons. Here's the ticket for initial support for DefaultIcon.png: TIMOB-19477. I created you a Windows-specific ticket: TIMOB-19487. So, after I finish TIMOB-19477, then you will simply be able to call the generateAppIcons() method from the base Builder object and have it resize the DefaultIcon.png into as many other images as you'd like. Because the resizing uses Java, you will want to get a list of all images to resize, then pass them all in once.
  2. Kota Iguchi 2015-09-30

    Fixed by TIMOB-19487
  3. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source