HTTP 500 when using f_auto on large images

Comments

2 comments

  • Avatar
    Wissam Khalili

    Hi Bruno,

    Once using f_auto with webp, there is a limitation on the dimension size of the image.

    Webp is limited to 16383 pixels width or height

    The image dimension of "edges-fr-MP-1-100.png" is 21 X 28098.


    I would suggest adding some transformation to resize the image, for example:
    https://res.cloudinary.com/dl7hskxab/image/sprite/w_1,h_1000,f_auto/v1626469516/edges-fr-MP-1-100.png

    For more details about resizing images, you could find here:
    https://cloudinary.com/documentation/resizing_and_cropping

    Regards,

    Wissam

    0
    Comment actions Permalink
  • Avatar
    Bruno Perel

    Hello Wissam,

    Thank you for your prompt answer, appreciated. So Webp is the limiting factor then, got it.

    In my case I can't afford to resize the images as they would appear pixelated given the viewport on my webpage; but I can add some code to only add f_auto to the URL if the sprite's dimensions (that I know in advance) are small enough.

    0
    Comment actions Permalink

Please sign in to leave a comment.