I am writing a program to display a database to the screen(xterm) and want to allow the window resize signal to increase/decrease the amount data that is displayed. I have a signal handler function for catching the SIGWINCH event and calling a function to reallocate the space for the windows... (0 Replies)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Hi,
I"m trying to achieve the following:
I have a NAS which holds all my pictures, and have it mounted on my xbmc as a network share. I want to automatically synchronize my pictures (NAS -> xbmc, one direction).
But, during the synchronization I want to resize the pictures to make them... (7 Replies)
Hi,
I have a directory with Multiple subdirectories and 1000s of pictures (jpg) in each directory. The problem is that each directory has a 001.jpg in them. I want to append a unique name (the directory_name)would be fine. and then move them to one main backup directory once they have been... (1 Reply)
Is there a script or extension that I can look into that will re-size an allotment of images to a given size?? Id like to take images of a certain size and resize them but Im dont remember an install option that can do it if installed in ubuntu but I, also unsure in what code I will have to learn.... (2 Replies)
Hi & good day,
How to use find correctly ?
I have several folders, _img1, _img2 etc.
Then I want to use the find command to find part of an image name, such as:
the string ”modern”
which is (at least) in:
”_img2/modern_world2PS220.jpg”
Also I want to know _in which folder_ it... (10 Replies)
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)
Discussion started by: JonaQuinn
1 Replies
LEARN ABOUT OSX
img-jpeg
img-jpeg(n) img-jpeg(n)
__________________________________________________________________________________________________________________________________________________NAME
img-jpeg - Img, Joint Picture Expert Group format (jpeg)
SYNOPSIS
package require Tk
package require img::jpeg ?1.4?
image create photo ?name? ?options?
_________________________________________________________________DESCRIPTION
The package img::jpeg 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::jpeg.
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 Joint Picture Expert Group format (jpeg). More specifically img::jpeg extends Tk's photo image type.
The name of the new format handler is jpeg. This handler provides new additional configuration options. See section JPEG OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in jpeg format (options -data and -file) is detected automatically.
[2] The format name jpeg 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 JPEG OPTIONS.
JPEG OPTIONS
The handler provides six options, two effective when reading from a JPEG image, and five influencing the writing of such. One option is
usable for both reading an writing.
-fast This option is for reading from JPEG data. It usage activates a processing mode which is fast, but also provides only low-quality
information.
-grayscale
This option can be used for both reading and writing of JPEG data. Usage of this option forces incoming images to grayscale, and
written images will be monochrome.
-quality n
This option is for writing JPEG data. It specifies the compression level as a quality percentage. The higher the quality, the less
the compression. The nominal range for n is 0...100. Useful values are in the range 5...95. The default value is 75.
-smooth n
This option is for writing JPEG data. When used the writer will smooth the image before performing the compression. Values in the
10...30 are usually enough. The default is 0, i.e no smoothing.
-optimize
This option is for writing JPEG data. It usage causes the writer to optimize the huffman table used to encode the jpeg coefficients.
-progressive
This option is for writing JPEG data. It usage causes the creation of a progressive JPEG file.
SEE ALSO
img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-
tga, img-tiff, img-window, img-xbm, img-xpm
KEYWORDS
image handling, jpeg, tk
COPYRIGHT
Copyright (c) 1995-2009 Jan Nijtmans <nijtmans@users.sourceforge.net>
Img 1.4 img-jpeg(n)