Questions tagged [perlmagick]

Image::Magick is an objected-oriented Perl interface to ImageMagick. Use it to read, manipulate, or write an image or image sequence from within a Perl

Image::Magick is an objected-oriented Perl interface to ImageMagick.

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.

38 questions
15
votes
2 answers

Remove white background from an image

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.
7
votes
1 answer

Anything faster than ImageMagick?

Is there anything faster to ImageMagick ? I'm processing images with different kind of filters so to create effects like old photo, oil paint etc.
3
votes
1 answer

perlmagick imagemagick error

My hosting provider has recently upgraded their servers and I am having lots of problems with imagemagick scripts in perl. My script worked perfectly on the old server but fail on the new one so I have gone back to basics to try and sort out what…
Stu Ayton
  • 489
  • 3
  • 15
3
votes
1 answer

Perl ImageMagick: how to disable printing of command output?

I have a Perl script: #!/usr/bin/perl use strict; use Image::Magick; my $temp_filename = 'temp.webp'; my $im = Image::Magick->new; my $m = $im->Read($temp_filename); When I run it from the command line, I get: $ perl test.cgi Decoded…
Bintz
  • 784
  • 2
  • 9
  • 22
3
votes
3 answers

Setting Background Color in Perl Magick Image Conversion

I am using Perl Magick which is the Perl module for Image Magick to convert images from GIF and PNG to JPEG. Everything works perfectly until I try to convert an image with a transparent background. The default behavior for the Resize() function is…
Russell C.
  • 1,649
  • 6
  • 33
  • 55
2
votes
1 answer

4:3 Image Cropping Algorithm

I am using ImageMagick for Perl use Image::Magick; I have written functional code to perform all necessary tasks like resize, thumbnail, read dimensions, crop, crop to center. I do have a requirement that all photos are landscape so I toss out any…
chrisrth
  • 1,182
  • 3
  • 15
  • 36
2
votes
0 answers

Directly manipulating PNG colormaps

I'm working on a project converting images packed into a proprietary container format into individual PNG images which then get repacked into a more flexible container format. One of the odder restrictions for this is that the order of the colormap…
Frotz
  • 535
  • 4
  • 21
2
votes
1 answer

How to "feather" the edges on image with PerlMagick

I have one image (JPEG) that I want to seamlessly superimpose on another. If I was trying to do this in Photoshop I would feather the edges. But I cannot work out how to achieve this with the PerlMagick api. I have tried using Vignette to create a…
Melchester
  • 421
  • 3
  • 18
2
votes
1 answer

Installing imagemagick perlmagick on Windows Strawberry Perl

Has anyone had any success recently installing imagemagick/perlmagick on Windows with recent versions of strawberry perl? I have read and tried many of the things suggested that I found online however none is very recent and none has worked for me.…
Tim
  • 57
  • 4
2
votes
1 answer

PerlMagick Chokes on ICO File?

I've been working on a script that retrieves favicons from sites, which is now mostly working, but I've run into a huge roadblock. When I call on the ImageMagick module in Perl, it doesn't seem to know what to do with the venerable favicon.ico file…
Timothy R. Butler
  • 1,097
  • 7
  • 20
2
votes
1 answer

Custom color inversion algorithm with ImageMagick/perl

I have some existing code in C# that I'm trying to move to an open source scripting language. The general idea is to read in a PNG image, and perform a "custom inversion" color transformation on it. I want to: simply invert all greyscale (ie R=G=B)…
tkrajcar
  • 1,702
  • 1
  • 17
  • 34
2
votes
1 answer

Extraction of a part from an image

I want to extract small rectangles from an image and then want to convert/roll the small rectanges into cylinders. No animation required. I just want to have the cylinders as images. I am using Perlmagick as API for ImagemagicK. Any help/suggestions…
Manisha Dugar
  • 189
  • 1
  • 1
  • 5
2
votes
1 answer

Add an alpha channel to an image read in with PerlMagick

I'm reading in image that doesn't have an alpha channel: my $image = Image::Magick->new; $image->Read("./noalpha.png"); And then trying to set certain pixels to a different color/alpha value: my @color = ( 0.2, 0.4, 0.6, $alpha ); $image->SetPixel(…
John Westlund
  • 336
  • 1
  • 10
2
votes
2 answers

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

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…
Thariama
  • 50,002
  • 13
  • 138
  • 166
2
votes
1 answer

PerlMagick: Use QueryColorname() from Histogram() output

I want to get histogram of unique color in an image with color names or their Hex code. I am unable to convert histogram method output value into color name or Hex code using QueryColorname method; It always returns black and does not return Hex…
usyed
  • 51
  • 1
1
2 3