Solved

Image manipulation with Perl

Posted on 2004-08-23
2
167 Views
Last Modified: 2013-12-25
Hello,

I've written a script in perl-cgi to automatically display images from a folder on to a web page.

I now have two questions:

1. Is there a good way (preferably using perl), of turning images into thumbnails? I don't mean just changing their dimensions but actually shrinking the filesizes along with the images.

2. I wanted a button to rotate the images in case they're portrait. Is there a relatively simple way of doing this or shall i hit cpan?

cheers,

cjm
0
Comment
Question by:cjmos
2 Comments
 
LVL 8

Accepted Solution

by:
inq123 earned 125 total points
ID: 11874141
Hi cjmos,

I would definitely recommend using imagemagick to do it.  It has a perl API that's easy to use for even novices to the program, which includes me.  I made a couple simple schematic visualization perl scripts with it, although the strength with the program is actually manipulating images, which is what you want.  URL is http://www.imagemagick.org/ (perlmagick is at http://www.imagemagick.org/www/perl.html)

Cheers!
0
 
LVL 3

Author Comment

by:cjmos
ID: 11881634
Thanks, I got perlmagick working pretty well.

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now