Topic: Resize error?

When I try to add a jpg image file that's 5952x4800 pixels, I get a "Resize Error" message:

Error resizing image: 'abc.jpg'. Possibly the image was too large or invalid. Images must be smaller than 4095 x 4095 pixels.

That's odd, as I have often processed images that are well over 4095px, at least in one dimension.  What's the size limit?  Is there a workaround, or do I need to resize images before I bring them into JB?

Thanks,
Patrick

Re: Resize error?

Adobe AIR (the platform on which JuiceboxBuilder-Pro runs) uses Adobe Flash Player as its runtime environment and the largest image size which Adobe Flash Player can handle is 16,777,215 pixels. This equates to a square image of 4095 x 4095. One dimension can be larger than 4095 but if the product of the width and height exceeds 16,777,215 pixels, then the error you have encountered will be triggered. Please see this web page for details: http://helpx.adobe.com/flash-player/kb/ … files.html

If you have larger images that you would like to use as source images for your gallery, you could perhaps resize them in an imaging program such as Adobe Photoshop before feeding them to JuiceboxBuilder-Pro. Rather than have your images resized twice (once by your imaging program and again by JuiceboxBuilder-Pro), you could use your imaging program to resize your images to the correct size for your gallery and then deselect the 'Resize Images' checkbox on the 'Images' tab (so that the images are not processed again by JuiceboxBuilder-Pro).

Alternatively, there are other methods of creating a Juicebox-Pro gallery which you might like to take a look at.
Please see here for details.

Re: Resize error?

I have tried to create a gallery using jpegs that are 4000 pixels on their longest side. The shortest side is 2680 or less for all files. All files generate the following message (one for each file):

Error resizing image: 'Three Peaks on a Cloudy Morning 0020 NX.jpg'. Possibly the image was too large or invalid. Images must be smaller than 4095 x 4095 pixels.

All files are therefore 11 megapixels or less, well below the Adobe Air limit!

Can this be fixed??

Re: Resize error?

On further investigation I have found the following.
There were 14 images in the gallery. The error messages were generated for 11 of the 14. The large, small, and medium jpegs were created, but the thumbnails for the 11 images with the error message were not generated. Also, the large jpegs were smaller than the size I specified for all the images, except 1 which was generated at the specified size.
Just purchased the product and using for first time. Very disappointed in this performance. If this turns out to be full of bugs like this, I will ask for my money back.
This is very, very bad!!!

Re: Resize error?

@bherman

I'm sorry to hear that you're having problems with JuiceboxBuilder-Pro but I'll try to help if I can.

Possibly the image was too large or invalid.

As your image dimensions are within the resolution limit for Adobe AIR, it looks like the issue certainly lies elsewhere.
If you are able to provide me with one of your source images (please upload one somewhere and post a link), I can try to replicate the problem and investigate further. Also, it might help to know exactly what images sizes you have set in the 'Resize Images' section.

... but the thumbnails for the 11 images with the error message were not generated

What thumbnail dimensions did you set?

Also, the large jpegs were smaller than the size I specified for all the images, except 1 which was generated at the specified size.

Please let me know the following:

  • Dimensions of your source image

  • Dimensions for the large images set in the 'Resize Images' section

  • Dimensions of the output image

Please note that the dimensions set in the 'Resize Images' section are maximum bounds and unless Maximum Width x Maximum Height has exactly the same aspect ratio as the Actual Width x Actual Height of the source image, then either the width or the height of the output image will be smaller than its maximum value.
Also, images are only scaled down (not scaled up) so make sure that your source images are larger (in resolution) than your large image dimensions.

Once I have access to one of your source images and know what image dimensions you are setting and getting as output images, I should hopefully be able to help further. Thank you.

Re: Resize error?

Thanks for the response.
I made an error in my last post --- all the thumbnails were generated, it was the small files that were not generated. Site still works, even on my iPhone.
I have set up an ftp account for you on my server. the server is [host deleted]
user name is [username deleted] (you must use the whole name)
password is [password deleted]
there are three directories -- source, large, medium, and thumbs. Each contains the appropriate jpeg.
the parameters for image size were as follows:
Thumbs 85 85 90
medium 1620 1080 90
Large 3000 2000 90
small 800 600 90

Note that the medium and thumbs were generated per spec. The large has a long side as 2048 (the default) instead of the 3000 specified and the small not generated at all.

I will delete the ftp account in one week.

Thanks
Bernie

Re: Resize error?

Thank for for giving me access to one of your source images and for letting me know what settings you are using.
(I have deleted the login details from your post above and you can now delete the temporary FTP account on your web server.)
I have been able to replicate the problem and it looks like the error is triggered by certain values for the large image settings.
This is not a problem with your image. For example, with your own image, if I set the Large Images Max Width and Max Height to both 2507, the image is processed correctly. However, if I use values of 2508, the error message is displayed.
Thank you for pointing out this problem. I have notified the developers who will certainly investigate further.
In the meantime, it looks like the workaround would be to reduce your Large Images Max Width to 2507 (or lower).