iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2005, 08:03 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
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..

Reply With Quote
Reply

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

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

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



All times are GMT -4. The time now is 05:22 AM.



Search Engine Optimization by vBSEO 3.3.0