Topic: PNG files change to JPG

I uploaded some png files to use, and they are changed to jpg files with black backgrounds. How can I keep this from happening? I would like for dealers to be able to download the images to use with the backgrounds transparent.

Re: PNG files change to JPG

When JuiceboxBuilder resizes images, they are always converted to JPEG format (and JPEG images do not support transparency so transparent regions are converted to black). JuiceboxBuilder cannot resize PNG files as smaller PNG files.
Deselect the 'Resize Images' checkbox on the 'Images' tab and your PNG files will be copied across to the gallery's 'images' folder and their transparency will be retained.
If you need smaller PNG files, I would recommend that you create them in an imaging program (such as Adobe Photoshop) before feeding them to JuiceboxBuidler (with 'Resize Images' switched off).

Incidentally, when using PNG file with 'Resize Images' switched off, the files in the 'images' folder will have .jpg file extensions but they will still be PNG images (identical to the source images) and the gallery will still display them correctly. This has been logged as a bug and should hopefully be fixed in a future version of JuiceboxBuilder.

Re: PNG files change to JPG

Okay. That kind of defeats my purpose for Juicebox though. I wanted to be able to have a nice way of allowing dealers to download files for advertising use. I may convert them to jpg files and add a link in the description to the high res png version. That may not be too bad.

Re: PNG files change to JPG

If your source .png files are not too large (file size), then you might still be able to create a gallery with them by deselecting the 'Resize Images' checkbox. (Juicebox will dynamically scale them down to fit within the gallery's image area.)

I know it's an extra step in your workflow but, until the bug is fixed, after creating your gallery, you could rename your files to have the correct .png file extensions and then change the references to them (the imageURL entries) in the gallery's XML file.
A bulk rename utility and a global search and replace action in a text editor should allow you to do all this quite quickly.