This is a migrated thread and some comments may be shown as answers.

Splash screen assets generator arbitrary 2MB file size limit

2 Answers 141 Views
AppBuilder extension for Visual Studio
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joe
Top achievements
Rank 2
Joe asked on 14 Apr 2016, 07:03 PM

When attempting to generate splash screens with 2208×2208 png that is 3.3MB the project properties UI shows a dialog stating:

Cannot process image

The provided image does not meet the maximum size requirements.
The image must not exceed 2MB.

3.3 MB seems to be a reasonable file size at those dimensions and Ionic CLI `ionic resources` command handles it just fine, but my company is moving to an AppBuilder Visual Studio Extension & CLI workflow so it would be nice if this file size restriction was not imposed.

2 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 15 Apr 2016, 05:25 AM

I was able to reduce the files with this PNG lossless compression color quantizing tool. They ended up with a 40% – 0% reduction in size and will now work with the Assets generator tool. I still feel that 2MB is an arbitrary restriction, however.

https://tinypng.com

0
Accepted
Georgi
Telerik team
answered on 19 Apr 2016, 02:41 PM
Dear Joe,

Thank you for sharing your valuable feedback. 

The 2MB limitation is because of an issue in png prediction re-sizing algorithm which in some cases can cause that the smaller (down-scaled) images to take up more space than the original after getting resized. In such case the project assets can become larger than 50MB, therefore after research we decided that regular optimized splash screen will not exceed the 2MB limit.

We are going to verify the research again and consider increasing the limit to a more reasonable number. 
Also, we are working to optimize our compression algorithms.

Regards,
Georgi
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
AppBuilder extension for Visual Studio
Asked by
Joe
Top achievements
Rank 2
Answers by
Joe
Top achievements
Rank 2
Georgi
Telerik team
Share this question
or