• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

How to convert GIF to PNG in Perl/CGI

I need a Perl script to convert GIF format to PNG format in a webpage, does anyone help me?
0
mikezang
Asked:
mikezang
  • 2
1 Solution
 
TintinCommented:
The Image::Magick module can do that for you.

http://search.cpan.org/author/JCRISTY/PerlMagick-5.55/Magick.pm
0
 
mikezangAuthor Commented:
I have two question about this module.
1. How can I know if a site suppots this module? for example, bardsoft.virtualave.net .
2. How can I use this module? I got gif image from this URL
/image.map.yahoo.co.jp/ymap/mk_map?&width=120&height=160&la=1&scale=100000&nl=35/42/16.0&el=139/33/35.0&no_part=0
I hope it can be onverted to PNG format, then show it in browser, can you show me a CGI sample for this purpose?
0
 
TintinCommented:
To know if your site supports ImageMagick, either ask them or use Perldiver to list all the modules installed.

The documentation for ImageMagick has plenty of examples.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now