Adding photos, creates white thumbnail

50 views
Skip to first unread message

Derek Holzapfel

unread,
Mar 31, 2023, 2:20:24 PM3/31/23
to Gallery 3 Users
Hello,

Always something to keep us busy.
My site provider moved from Telus to Easyhosting and now when I add a photo, a white thumbnail is displayed (see attached).  Clicking on it, displays a blank image, and clicking on the blank then displays the full sized jpg file.

I have tried the following to no avail:
- rebuild images
- re-installed 3.1.5
- tried plupload module

Host is running php 7.4

Any ideas are appreciated

Cheers
Derek

Screen.jpg

Derek Holzapfel

unread,
Mar 31, 2023, 3:34:51 PM3/31/23
to Gallery 3 Users
Another piece to the puzzle, here is the error log when attempting to rebuild:

ask Rebuild Images started (task id 43)
Unable to rebuild images for 'Screen'
Kohana_Exception: The ImageMagick directory specified does not contain a required program, convert in /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/drivers/Image/ImageMagick.php:46
Stack trace:
#0 /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/Image.php(123): Image_ImageMagick_Driver->__construct(Array)
#1 /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/Image.php(56): Image_Core->__construct('/services/webpa...', NULL)
#2 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/gallery_graphics.php(102): Image_Core::factory('/services/webpa...')
#3 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/graphics.php(171): gallery_graphics_Core::resize('/services/webpa...', '/services/webpa...', Array, Object(Item_Model))
#4 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/gallery_task.php(111): graphics_Core::generate(Object(Item_Model))
#5 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/task.php(90): gallery_task_Core::rebuild_dirty_images(Object(Task_Model))
#6 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('43')
#7 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/controllers/admin.php(62): Admin_Maintenance_Controller->run('43')
#8 [internal function]: Admin_Controller->__call('Admin_maintenan...', Array)
#9 /services/webpages/n/a/naturediver.com/public/Gallery/system/core/Kohana.php(302): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#10 /services/webpages/n/a/naturediver.com/public/Gallery/system/core/Event.php(208): Kohana_Core::instance(NULL)
#11 /services/webpages/n/a/naturediver.com/public/Gallery/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /services/webpages/n/a/naturediver.com/public/Gallery/index.php(124): require('/services/webpa...')
#13 {main}
Unable to rebuild images for 'Diver'
Kohana_Exception: The ImageMagick directory specified does not contain a required program, convert in /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/drivers/Image/ImageMagick.php:46
Stack trace:
#0 /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/Image.php(123): Image_ImageMagick_Driver->__construct(Array)
#1 /services/webpages/n/a/naturediver.com/public/Gallery/system/libraries/Image.php(56): Image_Core->__construct('/services/webpa...', NULL)
#2 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/gallery_graphics.php(102): Image_Core::factory('/services/webpa...')
#3 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/graphics.php(171): gallery_graphics_Core::resize('/services/webpa...', '/services/webpa...', Array, Object(Item_Model))
#4 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/gallery_task.php(111): graphics_Core::generate(Object(Item_Model))
#5 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/helpers/task.php(90): gallery_task_Core::rebuild_dirty_images(Object(Task_Model))
#6 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('43')
#7 /services/webpages/n/a/naturediver.com/public/Gallery/modules/gallery/controllers/admin.php(62): Admin_Maintenance_Controller->run('43')
#8 [internal function]: Admin_Controller->__call('Admin_maintenan...', Array)
#9 /services/webpages/n/a/naturediver.com/public/Gallery/system/core/Kohana.php(302): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#10 /services/webpages/n/a/naturediver.com/public/Gallery/system/core/Event.php(208): Kohana_Core::instance(NULL)
#11 /services/webpages/n/a/naturediver.com/public/Gallery/application/Bootstrap.php(67): Event_Core::run('system.execute')
#12 /services/webpages/n/a/naturediver.com/public/Gallery/index.php(124): require('/services/webpa...')
#13 {main}
Updated: 0 images. Total: 2.

gallery3_task_log.txt

J.R.

unread,
Mar 31, 2023, 5:43:37 PM3/31/23
to gallery...@googlegroups.com
Derek,

Try logging in to your Gallery, clicking on the Admin Dashboard and the on the "Settings" tab and going to "Graphics". There you can change the graphics handling package Gallery uses to "GD" instead of Image Magick. I've always had better luck using GD. If that solves the problem then it may mean that your new hosting environment does not have Image Magick configured properly.

GD is still being updated, with the latest version being 2.3.3 released in September, 2021, but their website address is different from what it says on the Gallery page. The new address is:

https://libgd.github.io/category/news.html

-- J.R.
--
WHEN USING AN EMAIL PROGRAM to reply to this message, click REPLY TO LIST or REPLY TO ALL so your reply goes out to everyone in the group. If you click REPLY or REPLY TO SENDER Google will *only* send your reply to the original author (not recommended).
 
To post a NEW MESSAGE to the group, send an new email to:
gallery...@googlegroups.com
 
To view or sign in to this group on the web, use this URL:
https://groups.google.com/forum/#!forum/gallery-3-users
---
You received this message because you are subscribed to the Google Groups "Gallery 3 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gallery-3-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gallery-3-users/8976830c-0113-4680-a9eb-6d84799902ban%40googlegroups.com.

Message has been deleted
Message has been deleted

J.R.

unread,
Apr 4, 2023, 3:20:10 PM4/4/23
to gallery...@googlegroups.com
Derek,

Good to hear. Just for information, I received notice the other day that there is a new version of Imagemagick released, so if you want to use it you should make sure that is the one which gets installed. While I have always had good luck with GD, the current version is pushing 2 years old.  Since I stepped back from the bleeding edge of technology long ago, I tend to go with the coding philosophy of "if it ain't broke... don't mess with it."  Of course, the current situation of security hacks morphing daily does punch a big hole in that approach.

-- J.R.

On 3/31/23 6:21 PM, Derek Holzapfel wrote:
Thank you so much J.R. for such a quick response.  That did the trick and fixed the problem!  

Once I selected "GD" in the graphics setting, an error displayed under the Imagemagick icon " We could not locate ImageMagick on your system.".
As  a bonus for me, after switching to "plupload module" the interface to upload displays properly, whereas the old one was corrupted, but functional.

Thanks again
Cheers
Derek


Reply all
Reply to author
Forward
0 new messages