Imagick Scale Image failure after upgrade, showing icon instead of picture
- Status
- Closed
- Subject
- Imagick Scale Image failure after upgrade, showing icon instead of picture
- Version
- 6.x
- Category
- Error
- Feature
- File Gallery (elFinder or standard UI)
Image Gallery - Resolution status
- Fixed or Solved
- Submitted by
- Nelson Ko
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
- After upgrading from 3 to 6, resizing of images fail. I tracked it down to Imagick's scaleImage function resulting in broken image, hence all that is shown is the GIF icon. This is the case when using the {img tag with size set.
- Solution
Need proper fix, by making option to not use Imagick but GD instead. Workaround to force GD instead of Imagick is as follows:
Copy to clipboardIndex: lib/images/images.php =================================================================== --- lib/images/images.php (revision 35491) +++ lib/images/images.php (working copy) @@ -14,13 +14,13 @@ // This assumes imagick is better than gd (which does not handle transparency in gray PNG), so try to find it first // $detected_lib = ''; -if ( class_exists('Imagick') ) { - $detected_lib = 'imagick_new'; // Imagick 2.x -} elseif ( function_exists('imagick_rotate') ) { - $detected_lib = 'imagick_old'; // Imagick 1.x -} elseif ( function_exists('gd_info') ) { +//if ( class_exists('Imagick') ) { +// $detected_lib = 'imagick_new'; // Imagick 2.x +//} elseif ( function_exists('imagick_rotate') ) { +// $detected_lib = 'imagick_old'; // Imagick 1.x +//} elseif ( function_exists('gd_info') ) { $detected_lib = 'gd'; // GD -} +//} if ($detected_lib != '') { // Load the detected lib- Workaround
- Importance
- 7
- Priority
- 35
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3949
- Created
- Tuesday 19 July, 2011 23:32:00 UTC
by Nelson Ko - LastModif
- Thursday 02 July, 2026 09:08:12 UTC