Greetings!
We’ve been upgrading our CB Gallery plugin to version 2.3 (from version 2.0 I think). Now our photos and their automatically generated thumbnails are still there, but the plugin thinks that they have a width and height of 0. Both values are 0 when I check the photo properties in the plugin’s media manager in the backend.
If I upload a new image, the fields are correctly filled and the thumbnail generated with the max sizes specified in the parameters.
Our main problem is with the thumbnails of the old images. Width/height of 0 means that their proportions are all distorted in the gallery rows. Displaying the individual images in the popup (after clicking a thumbnail) works fine.
I tried to delete one of the old thumbnails in the hope that the plugin would regenerate it. The plugin sees that it is no longer exists ("Exists : no" in the media manager), but it doesn’t regenerate it and only displays a blank square instead in the gallery row. Is there a way to tell CB Gallery to rescan the images properties and/or regenerate the thumbnails ?
Last edit: 6 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject
Edit and save the image in backend or frontend to re-save its cache values. My guess is you uploaded those before the caching functionality was added. If the image it self was stored with 0 width and height then you'll have to re-upload, but it sounds like that may have been a bug in an older release. CB Gallery does not touch any of the media entries or their files on install so the images would've been broken before latest build was installed.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Save or reupload is not really an option for us as we already have hundreds of pictures on the website. But it turns out that the unpublish-publish is enough to regenerate the information (and this can be done in batch series from the media manager).
The updated version of CB Gallery turned out to also be more strict on extension case. It refused to see image.JPG or rather it looked for it at image.jpg (while the previous version displayed image.JPG and made its thumbnail as tnimage.JPG). Of course, this could be solved with a bit of batch renaming in the shell.