Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Image manipulation with Perl

Posted on 2004-08-23
2
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
inq123 earned 500 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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

721 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