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

Detect black/almost black JPG images in PERL

I want to detect the black/almost black JPEG images from a folder using PERL. Do you have any suggestions about the method/module that I should use?
Nick
  • 331
  • 3
  • 14
2
votes
2 answers

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

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…
2
votes
1 answer

Image::Magick draw a blurred circle

Have an background image. (for this example the mesh.png) To the image need add one circle, with blurred border. Currently have this: use 5.014; use warnings; use Image::Magick; my $bgimg =…
clt60
  • 62,119
  • 17
  • 107
  • 194
2
votes
1 answer

Trouble Using ImageMagick - Installed Thru Homebrew

I installed ImageMagick thru Homebrew successfully - so it seems, anyways - but when I tested it thru Perl using perl -le 'use Image::Magick' I received this error: Cant load…
BrianAtUAB
  • 23
  • 3
2
votes
2 answers

Image::Magick (perlmagick) resizing aspect ratio and quality issues (different than convert command line utility)

I am attempting to do some bulk resizing operations of images using ImageMagick and perlmagick (Image::Magick). All of the images I have as sources are large images and I want to resize them down to various intervals or either height or width. I…
user3369022
  • 21
  • 1
  • 3
2
votes
1 answer

Perl Image::Magick: place an image on the top of an other image

I have two images (the first one is big and the second one is small and transparent). I need to add the second image at the center of the first image and save the result as a new file. How to do it with Perl Image::Magick?
porton
  • 5,214
  • 11
  • 47
  • 95
1
vote
2 answers

Pass MAGICK_THREAD_LIMIT to PerlMagick

I've run into an issue using PerlMagick under a restricted user account where this error occurs: libgomp: Thread creation failed: Resource temporarily unavailable I discovered that this can be fixed using either the general environmental variable…
Timothy R. Butler
  • 1,097
  • 7
  • 20
1
vote
1 answer

How do I convert a svg to png in Perl's ImageMagick API PerlMagick?

How do I convert a svg image to png, save it to a file, and collect basic information about it? #!/usr/bin/perl use strict; use warnings; use Image::Magick; my $svg = <<'SVG';
Robert
  • 7,394
  • 40
  • 45
  • 64
1
vote
1 answer

Shear image, composite on another image, using PerlMagick

I am trying to shear an image and place on another image, like a photo on a cake, I am working in Perl and using Image::Magick Perl library. Here is the output I am able to generate, I am unable to make the background of the sheared image. Here's my…
Pradeep
  • 3,093
  • 17
  • 21
1
vote
0 answers

Fonts rendering differently in graphics magick

I am using graphics magick with PerlMagick interface to create images. There are currently 2 systems which are generating the images. System 1 is using the graphics magick version: 1.3.29 System 2 is using the graphics magick version: 1.3.18 I…
vikas kv
  • 386
  • 2
  • 15
1
vote
1 answer

How to write lossless WebP files with PerlMagick

I'm trying to convert PNG files to lossless WebP in Perl with Graphics::Magick. Command line for that is: $ gm convert in.png -define webp:lossless=true out.webp My Perl code looks something like that: use Graphics::Magick; my $image =…
squadette
  • 8,177
  • 4
  • 28
  • 39
1
vote
1 answer

How do I "read" from an existing image object instead of a file path with PerlMagick?

The following code generates a 300x100 image using a 100x100 tile as a source image: for (my $i = 0; $i < 3; $i++) { $image->Read("filepath/100x100.png"); } $result = $image->Montage(geometry=>'100x100',tile=>'3x1'); How do I reach the same…
Dustin Paluch
  • 93
  • 1
  • 8
1
vote
0 answers

imagemagick big stroke width adds strange effect like paint fluid

I've an issue with a script named pixenate which works as a simple image editor using javascript, imagemagick and perl. After deep troubleshooting I found that the issue happens when I use a big stroke width (14+) when I draw something on an image…
1
vote
1 answer

Internal server error when trying to write an image & an thumbnail using ImageMagick in Perl

This Perl script uploads an image to server and then saves: - a gallery image that fits in 900x900 px - a square gallery thumbnail 140x140 px - adds a line in a js file with the image and thumbnail names The problem is, that the script sometimes…
byddles
  • 27
  • 1
  • 7
1
vote
2 answers

ImageMagick command to Image::Magick code

I found the following ImageMagick command in some forum and works nicely for compare images. convert image1 image2 -compose Difference -composite -format '%[fx:mean*100]' info: The result is one floating point number and low values (like 0.5 and…
clt60
  • 62,119
  • 17
  • 107
  • 194