note 128268 added to function.imagescale
| From: | Journii1010 at main dot php dot net | Date: | Thu, 02 Mar 2023 06:34:32 +0000 |
| Subject: | note 128268 added to function.imagescale | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220225@lists.php.net to get a copy of this message | ||
Cambiar la escala de una imagen a 256x256 pixles
<?php
// Original image path
$original_image = "path/to/the/original/image.jpg";
// Load the image
$image = imagecreatefromjpeg($original_image);
// Resize the image to 256x256 pixels
$new_image = imagescale($image, 256, 256);
// Save the new image to a file
imagejpeg($new_image, "path/to/the/new/image.jpg");
// Free the memory used by the images
imagedestroy($image);
imagedestroy($new_image);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 181.176.21.8)
----
Manual Page -- https://php.net/manual/en/function.imagescale.php
Edit -- https://main.php.net/note/edit/128268
Del: integrated -- https://main.php.net/note/delete/128268/integrated
Del: useless -- https://main.php.net/note/delete/128268/useless
Del: bad code -- https://main.php.net/note/delete/128268/bad+code
Del: spam -- https://main.php.net/note/delete/128268/spam
Del: non-english -- https://main.php.net/note/delete/128268/non-english
Del: in docs -- https://main.php.net/note/delete/128268/in+docs
Del: other reasons-- https://main.php.net/note/delete/128268
Reject -- https://main.php.net/note/reject/128268
Search -- https://main.php.net/manage/user-notes.php