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

AppBuilder Resource Create Arbitrary File Size Limit

2 Answers 50 Views
Command-Line Interface
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, 06:55 PM

I have a splash screen asset that is 2208×2208 and 3.3 MB in size. When running the command below I encounter an arbitrary 2MB file size limit. The output reads:

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

appbuilder resource create  --splash ../assets/splash.png

2 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 2
answered on 15 Apr 2016, 05:45 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 `appbuilder resource create` command. 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
Command-Line Interface
Asked by
Joe
Top achievements
Rank 2
Answers by
Joe
Top achievements
Rank 2
Georgi
Telerik team
Share this question
or