note 130504 added to gmagick.trimimage

From: Date: Fri, 10 Oct 2025 20:53:44 +0000
Subject: note 130504 added to gmagick.trimimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-222372@lists.php.net to get a copy of this message
To trim image with 15% of fuzziness <?php $image = new Gmagick($image_path); $max_quantum = 65535; switch ($image->getQuantumDepth()['quantumDepthLong']) { case 8: $max_quantum = 255; break; case 16: $max_quantum = 65535; break; case 32: $max_quantum = 4294967295; break; } $image->trimImage(0.15 * $max_quantum); ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 84.15.216.150) ---- Manual Page -- https://php.net/manual/en/gmagick.trimimage.php Edit -- https://main.php.net/note/edit/130504 Del: integrated -- https://main.php.net/note/delete/130504/integrated Del: useless -- https://main.php.net/note/delete/130504/useless Del: bad code -- https://main.php.net/note/delete/130504/bad+code Del: spam -- https://main.php.net/note/delete/130504/spam Del: non-english -- https://main.php.net/note/delete/130504/non-english Del: in docs -- https://main.php.net/note/delete/130504/in+docs Del: other reasons-- https://main.php.net/note/delete/130504 Reject -- https://main.php.net/note/reject/130504 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222372) next »