Image::Magick - objected-oriented Perl interface to ImageMagick for default quantum (Q16). Use it to read, manipulate, or write an image or image sequence from within a Perl script.
| Use Case | Command | Description |
|---|---|---|
| 📥 Read an image | $p->Read("imagefile") | Load an image from disk |
| ⚙️ Set an attribute | $p->Set(attribute => value, ...) | Change image properties |
| 🔍 Get an attribute | ($a, ...) = $p->Get("attribute", ...) | Retrieve image properties |
| 🔄 Run a routine | $p->routine(parameter => value, ...) | Execute a transformation method |
| 🪄 Mogrify | $p->Mogrify("Routine", parameter => value, ...) | In-place image processing |
| 💾 Write/save | $p->Write("filename") | Save the image to a file |
use Image::Magick;
$p = new Image::Magick;
$p->Read("imagefile");
$p->Set(attribute => value, ...)
($a, ...) = $p->Get("attribute", ...)
$p->routine(parameter => value, ...)
$p->Mogrify("Routine", parameter => value, ...)
$p->Write("filename");
This Perl extension allows the reading, manipulation and writing of a large number of image file formats using the ImageMagick library. It was originally developed to be used by CGI scripts for Web pages.
A web page has been set up for this extension. See:
If you have problems, go to:
Kyle Shorter magick-users AT imagemagick.org
Has all the bugs of ImageMagick and much, much more!
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-17 20:25 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format