Sponsored Content
Full Discussion: perl Image::size function
Top Forums Shell Programming and Scripting perl Image::size function Post 302556526 by guidely on Monday 19th of September 2011 03:31:07 AM
Old 09-19-2011
perl Image::size function

Hi, How to use Image::size function ? because I want to list all image thatare less than size pixels in horizontal resolution. so here is my code :

Code:
#!/usr/bin/perl -w

use Image::Size;
use constant GIVEN_WIDTH = '100';
my @filtered_images = grep { my @d = imgsize( $_ ); $d[0] < GIVEN_WIDTH } @images;

but it not really working, can you plz help

Thank
 

9 More Discussions You Might Find Interesting

1. Solaris

database image size

hi , we are using Veritas netbackup 5 to backup all databases at our site. i noticed lately that a specific filesystem on the netbackup servers in running critically out of space , after some investigations i found that there are images that are increasing in size everytime a backup is taken .... (6 Replies)
Discussion started by: ppass
6 Replies

2. Programming

Will exe file size decrease while using inline function

using namespace std; void g(); class A { public : A() { g();g();g(); cout << "Constructor of A"<< endl ;} }; inline void g(){ cout << "vijay" <<endl; } int main() { A a; } when i use inline i get size 303488 Aug 31 12:05 a.out* when not using inline i get size 303572 Aug 31... (1 Reply)
Discussion started by: vijaysabari
1 Replies

3. UNIX for Dummies Questions & Answers

Add Image Size (W-H) to a UNIX statement

I am using a counter on Comcast and I have it working OK. What I need to do is to add the width and height of 'counter.gif'. Below is the statement I am using: &richportal is the counter name on the Comcast Server. EX: w=10px h=10px <img src="/cgi-bin/counter.gif?&richportal"> Thanks: Barry (0 Replies)
Discussion started by: barrie
0 Replies

4. Shell Programming and Scripting

Function SUM SIZE

Dear Friends, I wrote a script that get the size of specific files in a specific space directory. To get the total size I wrote a function in that script. So far I am not convinced that function is working correctly. Do you mind tell if there is anything wrong. I am on SOLARIS (KSH)... (4 Replies)
Discussion started by: Aswex
4 Replies

5. Shell Programming and Scripting

Identify function image magick problem - perl

Hi, I got some error when I try to write content from file store into array then for each word that separate by space use identify function to display image information.here is my code #!/usr/bin/perl -w open(FILE,'transfer_file_perl.txt') or die "$!"; my $line = <FILE>;#because it is one... (2 Replies)
Discussion started by: guidely
2 Replies

6. Shell Programming and Scripting

[Perl + Gtk2] Image disappears after scrolling / minimizing window

Hello everyone I don't know if it's the right place to ask, but I will try. I want to use Gtk2 in my Perl chart-drawing script, I found a sample code that could be very useful for me somewhere, but I noticed there is one problem with that - when I draw something, and then scroll the window or... (0 Replies)
Discussion started by: xqwzts
0 Replies

7. Shell Programming and Scripting

Perl script to extract text from image file

Hi Folks, Could you please share your ideas on extracting text from image file(jpg,png and gif formats). Regards, J (1 Reply)
Discussion started by: scriptscript
1 Replies

8. Shell Programming and Scripting

Perl CGI charts, actual plots and not image files

Does anyone know how to generate CGI charts which are not images , the one I am using generates image files e.g $mygraph3->set( 'x_labels_vertical' => 1 ); $mygraph3->set_legend_font(GD::gdMediumBoldFont); $mygraph3->set_legend('Test Plot'); my $myimage3 = $mygraph3->plot(\@data3)->png;... (4 Replies)
Discussion started by: priyophan
4 Replies

9. Programming

[xlib] Image has just 1/4 size

Hello, i'm trying to show the Image of an monochrome webcam in an xlib-Window. initializing of the window: if (NULL == ((*XWindow)->display = XOpenDisplay(NULL))) APPLICATION_Set_Error(V4LCamera->Application, XWINDOW, "failed to open display", 123, -1, APPLICATION_ERROR_MESSAGE); ... (1 Reply)
Discussion started by: mirrowwinger
1 Replies
Prima::Image::TransparencyControl(3)			User Contributed Perl Documentation		      Prima::Image::TransparencyControl(3)

NAME
Prima::Image::TransparencyControl - standard dialog for transparent color index selection. DESCRIPTION
The module contains two classes - "Prima::Image::BasicTransparencyDialog" and "Prima::Image::TransparencyControl". The former provides a dialog, used by image codec-specific save options dialogs to select a transparent color index when saving an image to a file. "Prima::Image::TransparencyControl" is a widget class that displays the image palette and allow color rather than index selection. Prima::Image::TransparencyControl Properties index INTEGER Selects the palette index. image IMAGE Selects image which palette is displayed, and the color index can be selected from. Events Change Triggered when the user changes "index" property. Prima::Image::BasicTransparencyDialog Methods transparent BOOLEAN If 1, the transparent selection widgets are enabled, and the user can select the palette index. If 0, the widgets are disabled; the image file is saved with no transparent color index. The property can be toggled interactively by a checkbox. AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima::ImageDialog. perl v5.14.2 2009-02-24 Prima::Image::TransparencyControl(3)
All times are GMT -4. The time now is 03:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy