Announcement

#1 2021-11-02 12:49:20

nahkampf
Member
2021-11-02
4

[resolved] "GD library is missing"

Hi, just installed Piwio and for some reason when I try to add photos (web form upload) nothing happens and it just displays the error message "GD library is missing", even though I'm running Imagick:

https://i.imgur.com/3hfTOtx.png

Offline

 

#2 2021-11-02 13:26:45

nahkampf
Member
2021-11-02
4

Re: [resolved] "GD library is missing"

(Fixed it by installing php7.2-gd, and after a restart of apache I can upload photos - but Maintenance still reports me using ImageMagick.

Offline

 

#3 2021-11-02 16:37:12

erAck
Only trying to help
2015-09-06
1337

Re: [resolved] "GD library is missing"

If the Graphics Library name is "ImageMagick" the PHP ImageMagick would be available (see admin/maintenance.php the switch (pwg_image::get_library()) and admin/include/image.class.php static function get_library() and the functions it calls) but apparently it can't be used (which is odd, maybe its installation is incomplete?), the external one's name would be "External ImageMagick", and the fallback is "GD".

If you also have the external ImageMagick installed you could try to force it using

$conf['graphics_library'] = 'ext_imagick';

in your local/config/config.inc.php (that's probably still better than using GD).
For other possible values see include/config_default.inc.php


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2021-11-02 17:30:34

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13541

Re: [resolved] "GD library is missing"

[Github] Piwigo issue #957

Summary : GD is still required because it's used to resize GIF files.

Offline

 

#5 2021-11-03 00:52:29

erAck
Only trying to help
2015-09-06
1337

Re: [resolved] "GD library is missing"

Oh, it's in the code but I haven't thought one actually uploads gifs :p


Running Piwigo at https://erack.net/gallery/

Offline

 

#6 2021-11-03 14:17:47

nahkampf
Member
2021-11-02
4

Re: [resolved] "GD library is missing"

Ah, that still an issue? Jeez.

Offline

 

#7 2021-11-08 17:07:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13541

Re: [resolved] "GD library is missing"

Actually, that's not an issue. GD is available everywhere. More than ImageMagick. Just install it and forget about this "problem" :-)

Offline

 

#8 2021-11-09 13:31:35

nahkampf
Member
2021-11-02
4

Re: [resolved] "GD library is missing"

Sure, the fix is super simple, but even better would be either

a) updating the requirements to make GD required or
b) not breaking on missing GD unless we actually try to process a GIF

That makes more sense than "just install a lib you are never going to use in order for this software to work" imho :)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact