Solved

Image manipulation with Perl

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

815 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

11 Experts available now in Live!

Get 1:1 Help Now