Visit The New, Modern Unix Linux Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #533
Difficulty: Easy
A Boolean is type of variable that is used to hold a truth value, either true or false.
True or False?
Linux & Unix Commands - Search Man Pages

thumbnail(1) [debian man page]

THUMBNAIL(1)						      General Commands Manual						      THUMBNAIL(1)

NAME
thumbnail - create a TIFF file with thumbnail images SYNOPSIS
thumbnail [ options ] input.tif output.tif DESCRIPTION
thumbnail is a program written to show how one might use the SubIFD tag (#330) to store thumbnail images. thumbnail copies a TIFF Class F facsimile file to the output file and for each image an 8-bit greyscale thumbnail sketch. The output file contains the thumbnail image with the associated full-resolution page linked below with the SubIFD tag. By default, thumbnail images are 216 pixels wide by 274 pixels high. Pixels are calculated by sampling and filtering the input image with each pixel value passed through a contrast curve. OPTIONS
-w Specify the width of thumbnail images in pixels. -h Specify the height of thumbnail images in pixels. -c Specify a contrast curve to apply in generating the thumbnail images. By default pixels values are passed through a linear contrast curve that simply maps the pixel value ranges. Alternative curves are: exp50 for a 50% exponential curve, exp60 for a 60% exponen- tial curve, exp70 for a 70% exponential curve, exp80 for a 80% exponential curve, exp90 for a 90% exponential curve, exp for a pure exponential curve, linear for a linear curve. BUGS
There are no options to control the format of the saved thumbnail images. SEE ALSO
tiffdump(1), tiffgt(1), tiffinfo(1), libtiff(3) Libtiff library home page: http://www.remotesensing.org/libtiff/ libtiff November 2, 2005 THUMBNAIL(1)

Check Out this Related Man Page

EXIF_THUMBNAIL(3)							 1							 EXIF_THUMBNAIL(3)

exif_thumbnail - Retrieve the embedded thumbnail of a TIFF or JPEG image

SYNOPSIS
string exif_thumbnail (string $filename, [int &$width], [int &$height], [int &$imagetype]) DESCRIPTION
exif_thumbnail(3) reads the embedded thumbnail of a TIFF or JPEG image. If you want to deliver thumbnails through this function, you should send the mimetype information using the header(3) function. It is possible that exif_thumbnail(3) cannot create an image but can determine its size. In this case, the return value is FALSE but $width and $height are set. PARAMETERS
o $filename - The name of the image file being read. This image contains an embedded thumbnail. o $width - The return width of the returned thumbnail. o $height - The returned height of the returned thumbnail. o $imagetype - The returned image type of the returned thumbnail. This is either TIFF or JPEG. RETURN VALUES
Returns the embedded thumbnail, or FALSE if the image contains no thumbnail. EXAMPLES
Example #1 exif_thumbnail(3) example <?php if (array_key_exists('file', $_REQUEST)) { $image = exif_thumbnail($_REQUEST['file'], $width, $height, $type); } else { $image = false; } if ($image!==false) { header('Content-type: ' .image_type_to_mime_type($type)); echo $image; exit; } else { // no thumbnail available, handle the error here echo 'No thumbnail available'; } ?> SEE ALSO
exif_read_data(3), image_type_to_mime_type(3). PHP Documentation Group EXIF_THUMBNAIL(3)

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Issue with installing GCC on Darwin - Trying not to freak out

The learning curve with UNIX is a bit steep and devastatingly humbling. Anywho, I need GCC so that I can install the software that I actually need and am terribly stuck. When I attempt to configure gcc I get the following error: configure: error: installation or configuration problem: C... (2 Replies)
Discussion started by: Jeffish
2 Replies

2. UNIX for Advanced & Expert Users

count, split and thumbnail creation of images

Hi, Need to do 3 tasks (independently) on images (.tif and .pdf) by using ksh/bash/perl - counting number of pages in an image - splitting the pages of images into separate individual images - creation of thumbnails Actually, i'm absolutely clueless about this but thought perl could do... (1 Reply)
Discussion started by: prvnrk
1 Replies

3. Shell Programming and Scripting

Search and find the string and output to a new file.

Hi I want to search the following in the entire file and put them in a diff file. file 1 contains : Non error probabilities are not decreasing in curve 1GEORGE_SGD_SUB Mid Point RESCAP_SGD_SNU curve have errors Non default probabilities are not decreasing in curve ABF_JPY_SUB Mid Point... (3 Replies)
Discussion started by: szchmaltz
3 Replies

4. Web Development

store images into databases or path to file system files ?

hi, I need a quick information about storing images into mysql databases. Is more convenient to store a path to the filesystem folder in which the images are stored, or is possible to directly store the images into my tables ? thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies

5. Shell Programming and Scripting

Sorting exponential notation

Hi, I just want to sort my file with exponential notation. For example: 1;2;4;s 1;5e-01;4;s 1;1;4;s I used sort -gk2, but it does not sort in the correct way. What's wrong? (15 Replies)
Discussion started by: NilsMueller
15 Replies

6. Shell Programming and Scripting

How to strip the spaces in file names?

please somebody tell me what is wrong with this, while the thumbnail grabbing works and encoding works, but what is not working is, mv $i.jpg /var/www/thumbs/ and mv $i.mp4 /var/www/uploads/ #!/bin/bash # MINT 9 - FFMPEG - QT-FASTSTART - X264 - MP4 DIR=/var/www/tmp for i in... (9 Replies)
Discussion started by: mysoogal
9 Replies

7. UNIX for Advanced & Expert Users

video thumbnail help

How do you make video thumbnails like this in Linux? The only program I know of that can do this is Media Player Classic. I hope there is a way to do this in Linux. What would these types of thumbnails be called? http://i255.photobucket.com/albums/hh133/COKEDUDEUSF/barcelona.jpg (2 Replies)
Discussion started by: cokedude
2 Replies

8. Shell Programming and Scripting

Exponential issues

I have the below awk command to search a row and find the line number. It returns the value in exponential. I understand we can use the print "%.0f\n" to convert the exponential. I wanted to have this in my awk command. Can anyone advise bnd=`awk '/^GS/{p=NR}$0~"^ABC.*\\*"k{f=1}/^GE/&&f{print... (3 Replies)
Discussion started by: Muthuraj K
3 Replies

9. Shell Programming and Scripting

Problem with numbers in exponential format

Hi I have a shell scribt with some numbers in exponential format, for example, "1.23456789E +01" Now I would like to bring these numbers into a format without the E. Can someone help me Thanks Flo ---------- Post updated at 10:07 AM ---------- Previous update was at 09:14 AM... (1 Reply)
Discussion started by: sbfly
1 Replies

10. Shell Programming and Scripting

give all images same height

How do I resize all images in a directory to the same pixel height? (1 Reply)
Discussion started by: locoroco
1 Replies

11. Shell Programming and Scripting

AWK - Avoid exponential value

I'm using the following command, but how can I avoid printing exponential value (highlighted):- awk ' BEGIN { OFS=FS="|" } { if(NF>4) $10=int(((3.77*$11)/100 + $11)); } { print } ' infile CR|20121022|105|GSM|N|SAN|00122|SAN|75082|6.03929e+06|5819880|5794769|25111... (7 Replies)
Discussion started by: Yoda
7 Replies

12. Shell Programming and Scripting

Difficulty cleaning references to duplicated images in HTML code

Hi, I need to search and replace references to duplicated images in HTML code. There are several groups of duplicated images, which are visually the same, but with different filenames. I managed to find the duplicated files themselves, but now I need to clean the code too. I have a CSV file with... (9 Replies)
Discussion started by: mdart
9 Replies

13. Shell Programming and Scripting

Script to isolate unused images in website

Hi I am sorry if I am in the wrong place! I have been looking for a way to isolate and FTP out of the server hundreds of images which are no longer doing anything there, that is, that are not linked to any page. The only thing I found (free) was the following script. If I am useless at... (7 Replies)
Discussion started by: qim
7 Replies

Featured Tech Videos