Solved

Image manipulation with Perl

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

630 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