Skip to content

Commit 82a4a82

Browse files
committed
Check for imagick first before falling back to gd when choosing php image library extension
1 parent b21ede4 commit 82a4a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/media/image.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*
2121
*/
2222

23-
if ((extension_loaded('gd') && $extension = 'gd') ||
24-
(extension_loaded('imagick') && $extension = 'imagick') ||
23+
if ((extension_loaded('imagick') && $extension = 'imagick') ||
24+
(extension_loaded('gd') && $extension = 'gd') ||
2525
($extension = 'mockup')) {
2626
include "$extension.php";
2727
}

0 commit comments

Comments
 (0)