Solved

Image manipulation with Perl

Posted on 2004-08-23
2
170 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
disabled AD accounts info 3 68
Make a file test.vbs using vbscript 5 63
Scripted configuration of TightVNC with Start on boot 7 51
User profile Size Report 3 63
Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

932 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

14 Experts available now in Live!

Get 1:1 Help Now