Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ImagickException: insufficient image data in file `/tmp/magick-5054YuqrlU0SzTeO' #233

Open
kdgeorgiev opened this issue Apr 12, 2023 · 1 comment

Comments

@kdgeorgiev
Copy link

kdgeorgiev commented Apr 12, 2023

ImageMagick version

6.9.7

Operating system

Linux

Operating system, version and so on

CentOS7

Description

When trying to load a generic page I get the following error.

Fatal error: Uncaught ImagickException: insufficient image data in file /tmp/magick-5054i7cT1EQFO5nV @ error/jpeg.c/ReadJPEGImage/1156 in /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-editor.class.php:39 

Stack trace: 
#0 /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-editor.class.php(39): Imagick->__construct('s3eucentral1://...') 
#1 /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-generator.php(70): TheGem_Dummy_WP_Image_Editor->get_size() 
#2 /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-generator.php(63): thegem_build_image_data('s3eucentral1://...') 
#3 /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-generator.php(26): thegem_get_thumbnail_src(196, 'thegem-gallery-...') 
#4 /home/troshevadm/public_html/wp-content/plugins/thegem-elements-elementor/thegem-elements-elementor.php(288): thegem_generate_thumbnail_sr in /home/troshevadm/public_html/wp-content/themes/thegem-elementor/inc/image-generator/image-editor.class.php on line 39

Steps to Reproduce

Created a theme, added images and now getting the error.

Images

Screenshot 2023-04-12 at 22 49 04

@kdgeorgiev
Copy link
Author

kdgeorgiev commented Apr 12, 2023

Okay!

Went into my cli and decided to remove the ImageMagick 6 ext.

`Removed:
ImageMagick.x86_64 0:6.9.10.68-6.el7_9

Dependency Removed:
ImageMagick-devel.x86_64 0:6.9.10.68-6.el7_9

Complete!`

Now the fatal error is no longer seen. I need the ImageMagick dependencies for this plugin.
Color Fixer

Let me try to remove and clean completely the dependency ImageMagick and Color Fixer. Then I would install it and see if it gives me the same error.

P.S. - It's great that my initial though that it's ImageMagick has come true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant