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
1
vote
1 answer

How to determine if an image has a transparent pixel

I just found a piece of code that was used to determine if an image has transparent pixels: my $alpha = $gd->transparent; if ($alpha < 0) { die("The image you uploaded has no transparent pixels. (alpha = $alpha)"); } Obviously, this does not…
capfan
  • 817
  • 10
  • 26
1
vote
1 answer

Adding data to IPTC field using Perl

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?
Thariama
  • 50,002
  • 13
  • 138
  • 166
1
vote
1 answer

Using Image::Magick to split an image into smaller chunks and get relative position of each chunk

I need to split a large (up to 16384x16384px) image into smaller chunks, usually 512x512. For doing this, I'm using the simple perl script below: #!/usr/bin/perl use warnings; use strict; my $size = '512x512'; unless ($ARGV[0]) { die "Missing…
Jarmund
  • 3,003
  • 4
  • 22
  • 45
1
vote
1 answer

Make error on PerlMagick 6.8.6

Attempting to install the CPAN Image::Magick module and am getting a fatal error that a core file is missing (note the fatal error highlighted between horizontal lines): Reading '/Users/coblem/.cpan/Metadata' Database was generated on Sat, 27 Jul…
0
votes
1 answer

Preserving clip size in Montage

I am using PerlMagick and I am having 4 clipped images of various sizes, Sizes are 25x25, 32x32, 40x40, 50x50 And I am creating a montage out of this, using simple Read command and Montage. But when I use Montage, somehow all the Images are made to…
Alphaneo
  • 12,079
  • 22
  • 71
  • 89
0
votes
1 answer

ImageMagick not creating text on my machine - Perl

I recently took over someone else's position on a project. When the below code was run on their old machine, it worked fine. But when I run it, I get a blank white line with a yellow rectangle with a red outline. Essentially, the Draw() method works…
BrianAtUAB
  • 23
  • 3
0
votes
1 answer

Use of uninitialized value within XXXX in concatenation (.) or string at image_magick.pl line XX

I wrote a program to compare the image files of two folders(having 1000 files each) with some logic (see this SO question). While executing it is comparing successfully until 900 images but then it gives an error like Use of uninitialized value…
user1881906
-2
votes
1 answer

Scaling of image to fixed width but not preserve the aspect ratio

I want to scale an image that way that the resulting image got a fixed width, but the heigth of the image stays the same. How can this be done?
Thariama
  • 50,002
  • 13
  • 138
  • 166
1 2
3