08-21-2006
Getting image properties
How can I get heigth and width of an image file?
It's possible to do without ImageMagick or other third libraries??
Thank you very much
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have set up php shop and it required command line access which i have I executed the install.pl script and everything went OK but when I tried to access the admin foler via the www @ www.helloni.co.uk/shophtml/admin/ i get a forbidden error.
I know I have to change the attribs of the folder... (8 Replies)
Discussion started by: trekker
8 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have noticed that rm -if will perform completely different to rm -fi. Whats the pattern of how I put my options to the script in relation to how it will act.
i.e
rm -fi treat the remove as interative but
rm -if treats it as forced
Thansk, Chris. (1 Reply)
Discussion started by: Chiefos
1 Replies
3. UNIX for Advanced & Expert Users
Hi, (HP-UX 11.11)
I need to create a tape image of an igniteUX image created on our igniteUX server.
That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Discussion started by: Andrek
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a simple problem in vi of which I dont know the solution.
I have a file of 2000 lines. But when I open the file in vi, it only displays 20 lines and I have to use ctrl-f to see next lines.
How do change the screen settings in vi? I want to see screen full text.
stty rows... (2 Replies)
Discussion started by: shriashishpatil
2 Replies
5. Shell Programming and Scripting
Hi All,
I have a code below but i have problems trying to execute "cat $jpg". Can anybody give me any advise? Is there something wrong with my syntax ?
#!/bin/csh
set qqq = 123
set www = 456
set jpg = ( $qqq $www )
cat $jpg
Output: (2 Replies)
Discussion started by: Raynon
2 Replies
6. HP-UX
Hi
How can we identify the informations like Author, meta data, dependency and other information from a depot file? (1 Reply)
Discussion started by: sethumadhavan
1 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I do have a line in my code as follows:
if ] ; then
...
else
...
fi
What does the -z does ? Similarly there is -s in some other part of the code. I guess there are many options like this.. Can anybody please tell what all options are available and what do they mean ? (2 Replies)
Discussion started by: risshanth
2 Replies
8. Shell Programming and Scripting
Hi
Am new to this scripting stuff so bear with me.
I got a script made now that reads in a properties file. The properties file is in the following format:
256= Bos, Sea, FRa
128= HEL
I want to be able to read in each line of the file and split out the letter fields by the numbered field. This... (2 Replies)
Discussion started by: vsekvsek
2 Replies
9. Shell Programming and Scripting
Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (6 Replies)
Discussion started by: kylle345
6 Replies
LEARN ABOUT DEBIAN
cgi::uploader::transform::imagemagick
CGI::Uploader::Transform::ImageMagick(3pm) User Contributed Perl Documentation CGI::Uploader::Transform::ImageMagick(3pm)
NAME
CGI::Uploader::Transform::ImageMagick - generate thumbnails with ImageMagick
METHODS
gen_thumb()
use CGI::Uploader::Transform::ImageMagick;
As a class method:
($thumb_tmp_filename) = CGI::Uploader::Transform::ImageMagick->gen_thumb({
filename => $orig_filename,
w => $width,
h => $height
});
Within a CGI::Uploader "spec":
gen_files => {
my_thumb => gen_thumb({ w => $width, h => $height }),
}
Looking for a different syntax? See "BACKWARDS COMPATIBILITY"
This function creates a copy of given image file and resizes the copy to the provided width and height.
"gen_thumb" can be called as object or class method. As a class method, there there is no need to call "new()" before calling this method.
Graphics::Magick is used as the first choice image service module. Image::Magick is tried next.
Input:
filename - filename of source image
w - max width of thumbnail
h - max height of thumbnail
One or both of "w" or "h" is required.
Output:
- filename of generated tmp file for the thumbnail
- the initialized image generation object. (You generally shouldn't need this)
BACKWARDS COMPATIBILITY
These older, more awkward syntaxes are still supported:
As a class method:
($thumb_tmp_filename) = CGI::Uploader::Transform::ImageMagick->gen_thumb(
$orig_filename,
[ w => $width, h => $height ]
);
In a "CGI::Uploader" "spec":
'my_img_field_name' => {
transform_method => &gen_thumb,
params => [ w => 100, h => 100 ],
}
1;
perl v5.10.0 2009-04-27 CGI::Uploader::Transform::ImageMagick(3pm)