note 126289 added to imagick.getimageblob

From: Date: Fri, 30 Jul 2021 06:00:37 +0000
Subject: note 126289 added to imagick.getimageblob
Groups: php.notes 
Request: Send a blank email to php-notes+get-216689@lists.php.net to get a copy of this message
Further to Trevor's note above about getImageBlob potentially returning an empty string for large images. This seems image format dependent. I have a large (12046x8363) image which is returned ok. But if I call setImageFormat('pdf') and then call getImageBlob() again. Example: <?php // Image Manipulation here. $pngData = $imagick->getImageBlob(); // Returns a large PNG. $imagick->setImageFormat('pdf'); $pdfData = $imagick->getImageBlob(); // Returns empty string immediately ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 203.122.235.224) ---- Manual Page -- https://php.net/manual/en/imagick.getimageblob.php Edit -- https://main.php.net/note/edit/126289 Del: integrated -- https://main.php.net/note/delete/126289/integrated Del: useless -- https://main.php.net/note/delete/126289/useless Del: bad code -- https://main.php.net/note/delete/126289/bad+code Del: spam -- https://main.php.net/note/delete/126289/spam Del: non-english -- https://main.php.net/note/delete/126289/non-english Del: in docs -- https://main.php.net/note/delete/126289/in+docs Del: other reasons-- https://main.php.net/note/delete/126289 Reject -- https://main.php.net/note/reject/126289 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216689) next »