Replies: 1 comment 1 reply
-
gd2 is disabled by default in libgd, but you can turn it back on if you compile it yourself. I can't speak for php behavior though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have been using php's imagecreatefromgd2part function for almost two decades to read and decompress only small part of a large image file (topo maps) to publish WMS and WMTS services (OGC Web Map Service / Web Map Tile Service). It has been handy, fast and lightweigt way to read only the needed part of a large image and then re-project it to the projection (coordinate system) and resolution requested, with php.
However, apparenly support for gd2 format got dropped. So, what is the best alternative for this, the best libgd way to read only part of a large compressed image file with php? Reading the the whole image, de-compressing it all and then copying the part sure works, but it is too slow and heavy operation for any higher load services gd2 is/was used. I could not find any libgd (or php) functions for reading just parts of a image other than gd2 format, but maybe I am missing something.
Beta Was this translation helpful? Give feedback.
All reactions