ConFoo Montreal 2026: Call for Papers

Voting

: two minus zero?
(Example: nine)

The Note You're Voting On

fernando dot fonseca at afteryou dot pt
4 years ago
It should be clear that the set version of the function doesn't change the image it self, just the resource in memory, which probably is fine if you didn't save the image yet. If your use case is for an image that is already on disk, image you should always do something like:

imageresolution($img, 300, 300);
imagepng($img, $filname, $quality);

<< Back to user notes page

To Top