AppBuilder Resource Create Arbitrary File Size Limit

3 posts, 1 answers
  1. Joe
    Joe avatar
    4 posts
    Member since:
    Apr 2016

    Posted 14 Apr Link to this post

    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. Joe
    Joe avatar
    4 posts
    Member since:
    Apr 2016

    Posted 15 Apr in reply to Joe Link to this post

    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

  3. Answer
    Georgi
    Admin
    Georgi avatar
    3 posts

    Posted 19 Apr Link to this post

    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.

     
Back to Top