note 126197 added to function.imageresolution
| From: | fernando dot fonseca at afteryou dot pt | Date: | Fri, 25 Jun 2021 14:59:46 +0000 |
| Subject: | note 126197 added to function.imageresolution | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216550@lists.php.net to get a copy of this message | ||
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);
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 2001:8a0:74c1:4000:f5d2:33e3:eceb:1e1c)
----
Manual Page -- https://php.net/manual/en/function.imageresolution.php
Edit -- https://main.php.net/note/edit/126197
Del: integrated -- https://main.php.net/note/delete/126197/integrated
Del: useless -- https://main.php.net/note/delete/126197/useless
Del: bad code -- https://main.php.net/note/delete/126197/bad+code
Del: spam -- https://main.php.net/note/delete/126197/spam
Del: non-english -- https://main.php.net/note/delete/126197/non-english
Del: in docs -- https://main.php.net/note/delete/126197/in+docs
Del: other reasons-- https://main.php.net/note/delete/126197
Reject -- https://main.php.net/note/reject/126197
Search -- https://main.php.net/manage/user-notes.php