I sorta threw some pseudocode in there to demonstrate what I'm trying to do. . Where I am stuck is, I am trying to read in a list of images. The while/do works fine but I get confused as to how to represent all the images in the list as a single item such as '$image' because I need to scale all of them and them spit them back out on the command line with new names by adding -thumb to their names. Also I'm trying to make it JPG specific meaning if the list gets a .html file for example by accident it should skip over it. My biggest problem is I dont know how to represent a list of items as a single variable if that is the right word. Any help just to get started in the right direction is appreciated. . thank you
---------- Post updated at 04:31 PM ---------- Previous update was at 04:29 PM ----------
I'm just starting out with UNIX and have figured some stuff out. I just need some help with accepting user input on the command line. For instance, I created a number counter that counts down from any positive hard coded number. But, I want the commnad line line to read "Countdown 20" where 20... (1 Reply)
Hi UNIX guru's,
Have recently upgraded Oracle from 8i to 10g on an HP-UX (RISC) 11.11 box.
At least twice a day the database stops accepting incoming connections and the following errors are observed in the various logs.
The box needs to be rebooted to get everything going again.
The... (4 Replies)
I how do i accept a input date in script which is lesser than a specified day? ex: to accept a date less than or equal to 100 days(from today).?:(
Thanks for the help in advance.:) (1 Reply)
Is there a way accept A-Za-z0-9 from the user from a parameter?
EX. I want to take the parameter from the user even if its hEu or H3y
and store it as a parameter ( $1 ) (18 Replies)
I'm doing a script where you are suppose to start off in accepting one or more directory as an argument. How do i do this?
Sorry for the nub question. (2 Replies)
Hi I am trying to get my script to accept input regardless if the person enters a or A. here is the portion of the code where I get the input.
echo -n 'Please enter your choice:' # prompt user for input.
read reply # read input
echo
case $reply in #... (2 Replies)
I have a file such that
List : a, b, c, d
I want to list this as
List
a
b
c
d
however the trick is the number of arguments in the list is varies. There might be 0-7 variables .
Can you help me?
Please use code tags when posting data and code samples! (5 Replies)
I have a variable strLst containing a list of strings. I want to create a function that takes the list and an error message. If the number of strings is 0 or greater than 1, I print the error message. (1 Reply)
Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Hi,
I recently bought shared hosting at asphostportal.com. Now, I have little problem. Could you help me please? How to change the images after every 5 seconds in html?
The images should display in the same places for every 5 seconds?
can anybody send me code please.
Thanks. (4 Replies)
Discussion started by: minnawanda
4 Replies
LEARN ABOUT SUSE
img-png
img-png(n) img-png(n)
NAME
img-png - Img, Portable Network Graphics format (png)
SYNOPSIS
package require Tk
package require img::png ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::png is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::png.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Portable Network Graphics format (png). More specifically img::png extends Tk's photo image type.
The name of the new format handler is png. This handler provides new additional configuration options. See section PNG OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in png format (options -data and -file) is detected automatically.
[2] The format name png is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section PNG OPTIONS.
PNG OPTIONS
The handler provides no true options at all, but accepts pairs of keys and values when writing a PNG file. Each pair will be written as a
named text chunk where the key provides the name of the chunk and the value its contents. For example
png Author <name> Title <title> Description ...
TRANSPARENCY
If you want to write images to disk which contain transparency information (e.g. PNG with alpha channel) you need at least Tk 8.3.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
image handling, png, tk
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-png(n)