Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2005, 08:03 AM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: United Kingdom
Posts: 1,877
TrafficProducer RepRank 1
Default Help wanted for Image::Magick Remote image size: PERL

Help wanted for Image::Magick Remote image size: PERL

I have some PERL script which works LOCALLY, OptiPerl editor.

But fails on the Server, Host.

Basically I want the script to not allow images that are too big, ( x pixel or y pixel size), to set the size of these to the Maximun size.

Images which are smaller than the Maximun size I want should be left with out changes.

Please note that the images are hosted remotely

For example: $image_URL=http://store1.yimg.com/I/4inkjets_1829_757043.gif

Basically the code is:-

use Image::Magick;

... code

$image = new Image::Magick;

$image->Read($image_URL);

$image_width = $image->Get('width');
$image_height = $image->Get('height');

.... code to set sizes.

Returns:-
image_width==> image_height==>

The image size are NOT being returned from this when used on the sever, but are returned when code is tested Locally.

See this in action
See this code in action
http://www.comparebargains.com/cgi-b...y=bothcurrency


Thank you..

__________________
Videos to Watch and Video Publishing
Affiliate Program! Our Affiliate Program Pays 50.00% Business Support
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0