perlmagick

ImageMagick Command-Line Option Order (and Categories of Command-Line Parameters)

那年仲夏 提交于 2019-12-28 03:04:27
问题 My supervisor has asked me to convert the parts of our Perl scripts that use PerlMagick to instead pipe and use the command line version of ImageMagick (for various unrelated reasons). Using the our existing interface (crop, scale, save, etc) I'm building up a list of operations the user wants to perform on an image, constructing the statement to pipe and then executing it. What I would like to know is: Are convert operations performed from left to right? ie the order I pass them What happens

How to blur/pixelate part of an image using ImageMagick resulting in big pixels?

别来无恙 提交于 2019-12-13 02:26:34
问题 I am using Perl and ImageMagick (Perl-API). In a first step i take a rectangle of an image and blur this part of the image (plus rotation of that rectangle). Thanks to Mark Setchell this works as further bellow (see stackoverflow question here: How to blur/pixelate part of an image using ImageMagick?). Now my aim is to blur the rectangle of that image with the result of bigger pixels. How can i achieve that? Here the code of Mark Setchell that i use so far: #!/usr/bin/perl use strict; use

Adding data to IPTC field using Perl

百般思念 提交于 2019-12-04 05:01:12
问题 I want to set custom text to the IPTC field "Special instructions" in Perl. How can this be done without the usage of a modul? 回答1: Updated Again Ok, in the light of your new requirement to actually read, modify and then re-write the IPTC information, you could use the following to read the IPTC information until we find something better: print $image->Identify(); which gives this: stuff .. ... Profiles: Profile-8bim: 44 bytes Profile-iptc: 32 bytes Special Instructions[2,40]: Handle with

Remove white background from an image

淺唱寂寞╮ 提交于 2019-11-30 08:57:25
I want to get a transparent background or no background for my images. I tried the '-background none' option and also the 'transparent' option, but the background image remains white. How can I achieve this? Please suggest. Ali If you are using Imagemagik then the command is: convert input.gif -transparent white output.gif However it will only work with a pure white background and not a shade of white. There are alternative and easier ways to do this with IrfanView or The Gimp or Photoshop (more on that below). This article mentions that you may be using convert.exe that comes with Windows

Remove white background from an image

穿精又带淫゛_ 提交于 2019-11-29 13:13:36
问题 I want to get a transparent background or no background for my images. I tried the '-background none' option and also the 'transparent' option, but the background image remains white. How can I achieve this? Please suggest. 回答1: If you are using Imagemagik then the command is: convert input.gif -transparent white output.gif However it will only work with a pure white background and not a shade of white. There are alternative and easier ways to do this with IrfanView or The Gimp or Photoshop

ImageMagick Command-Line Option Order (and Categories of Command-Line Parameters)

戏子无情 提交于 2019-11-27 09:10:36
My supervisor has asked me to convert the parts of our Perl scripts that use PerlMagick to instead pipe and use the command line version of ImageMagick (for various unrelated reasons). Using the our existing interface (crop, scale, save, etc) I'm building up a list of operations the user wants to perform on an image, constructing the statement to pipe and then executing it. What I would like to know is: Are convert operations performed from left to right? ie the order I pass them What happens if I pass the same option twice? Are they performed separately? Obviously the order in which