9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
2. Programming
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
3. Shell Programming and Scripting
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 :
#!/usr/bin/perl -w
use Image::Size;
use constant GIVEN_WIDTH = '100';
my @filtered_images = grep { my @d = imgsize( $_ ); $d < GIVEN_WIDTH }... (8 Replies)
Discussion started by: guidely
8 Replies
4. Shell Programming and Scripting
Hi to all,
Some help here please.
I have a several image files (photos, jpg files), let say 100 photos, and a list of 100 different little comments in a text file, each comment for each image.
Somebody knows if I can add (like a watermark in the bottom) this text comments and how in the... (3 Replies)
Discussion started by: cgkmal
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
Is there any inbuild tool or software through which we can take system image of any unix system?
Please suggest.
Regards,
Ravi D (9 Replies)
Discussion started by: dwiravi
9 Replies
6. Shell Programming and Scripting
Hi,
Am trying to execute certain commands if the condition satisfied, but i feel i am making some mistakes in the usage of if statement
here is the code
#!/bin/ksh
SIZE=$(ls -ltr /aemu/ws/DN.txt | tr -s ' ' | cut -d ' ' -f 5)
filename=`TZ=CST+24 date +%Y%m%d`
ZERO=0
if
then
cp... (5 Replies)
Discussion started by: aemunathan
5 Replies
7. Shell Programming and Scripting
Hi Everyone,
I am facing a problem regarding the select from sybase, the return with the incorrect size.
For example, field is NAME(20).
After i selected from sybase, the result is nicky.
after i assign it to another declaration variable, it will be in actual name "nicky" , what i need... (10 Replies)
Discussion started by: ryanW
10 Replies
8. Solaris
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
9. UNIX for Dummies Questions & Answers
On windows we can save the screen in a .bmp file format. I sit possible to do the same thing in Unix? (3 Replies)
Discussion started by: asutoshch
3 Replies
IMGSIZE(1p) User Contributed Perl Documentation IMGSIZE(1p)
NAME
imgsize - read the dimensions of an image in several popular formats
USAGE
imgsize [ -r | -a | -f fmt ] file [ file ... ]
DESCRIPTION
No-brainer to size an image supplied on the command-line. All the real work is done in Image::Size.
REQUIRED ARGUMENTS
imgsize expects file names on the command-line. If more than one file is provided, the file name will be included in the output:
% imgsize dot.gif
width="16" height="16"
% imgsize dot.gif dash.gif
dot.gif: width="16" height="16"
dash.gif: width="32" height="8"
OPTIONS
By default, the width and height are returned as attributes for an IMG tag in HTML, essentially "width="40" height="30"" or similar. The
following options may be used to return alternate formats (all report width first, then height):
"-r"
Return "raw" format data. Just the numbers separated by a single space.
"-a"
Return a Perl-style list of attributes suitable for passing to the "img()" method of the CGI module (see CGI).
"-f" fmt
Pass the string specified in fmt to "sprintf" and thus use it to format the results to your taste. "sprintf" will be passed two
numbers, so any other formatting directives will be lost. The numbers are passed as width first, then height.
EXIT STATUS
imgsize always exits
BUGS
Please report any bugs or feature requests to "bug-image-size at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Image-Size>. I will be notified,
and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Image-Size>
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Image-Size <http://annocpan.org/dist/Image-Size>
o CPAN Ratings
http://cpanratings.perl.org/d/Image-Size <http://cpanratings.perl.org/d/Image-Size>
o Search CPAN
http://search.cpan.org/dist/Image-Size <http://search.cpan.org/dist/Image-Size>
o Project page on GitHub
http://github.com/rjray/image-size <http://github.com/rjray/image-size>
LICENSE AND COPYRIGHT
Copying and distribution are permitted under the terms of the Artistic License 2.0
(http://www.opensource.org/licenses/artistic-license-2.0.php <http://www.opensource.org/licenses/artistic-license-2.0.php>) or the GNU LGPL
2.1 (http://www.opensource.org/licenses/lgpl-2.1.php <http://www.opensource.org/licenses/lgpl-2.1.php>).
SEE ALSO
Image::Size
AUTHOR
Randy J. Ray "<rjray@blackperl.com>".
perl v5.14.2 2012-06-08 IMGSIZE(1p)