Sponsored Content
The Lounge What is on Your Mind? New Feature: Tagging Threads as "Solved" Post 302896556 by Neo on Tuesday 8th of April 2014 06:14:53 AM
Old 04-08-2014
OK. I added a UserCP option to set this color (can add up to two more, suggestions appreciated)

Indicator Color for Solved Threads

Image
These 2 Users Gave Thanks to Neo For This Post:
 

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

vBulletin Exclude Forums from "Get New Posts" Feature

First I would like to say you run an awesome site. I use it pretty much everyday... I am a member of a local Jeep Club Virtual Jeep Club - Powered by vBulletin and we run vBulletin Version 3.7.0. You have a feature we would like to add. In "User CP" -> "Edit Options" you have: Exclude... (3 Replies)
Discussion started by: Ikon
3 Replies

2. IP Networking

Which release version of Solaris 10 have "snoop -I" feature

In one of Sun docs I found that a new option, -I, is added to the snoop command.This option specifies for the command to use the new IP layer devices instead of the underlying link-layer device to display traffic data. it is used to enhance IP observability. But in Solaris 10 with release verstion... (0 Replies)
Discussion started by: anando.1980
0 Replies

3. Programming

Looking for a "Select All" feature in TCL

I hope thi sis simple... I have a TCL script which has several checkboxes. Is there a way to have one of the checkboxes be a "select all" and select/deselect all of the other boxes? Can you show me a mini-sample? Thanks... Scott E. (0 Replies)
Discussion started by: scottwevans
0 Replies

4. Programming

Need a "select all" feature in TCL

I hope this is simple... (I tried looking for help in the Shell Programming and Scripting thread, but got no responses.) I have a TCL script which has several checkboxes. Is there a way to have one of the checkboxes serve as a "select all" and select/deselect all of the other boxes? Can you... (1 Reply)
Discussion started by: scottwevans
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Red Hat

to disable "out off office" feature on QMAIL.

How can I disable out of office feature on qmail. We don't want to be use this feature by users. Especially our boss doesn't want because clients have smartphone so they can answer from everywhere! (0 Replies)
Discussion started by: getrue
0 Replies

7. Post Here to Contact Site Administrators and Moderators

Marking threads as "solved"

perhaps offtopic.. pity this forum don't have an option 'mark this thread as solved' like some others do.. (2 Replies)
Discussion started by: orange47
2 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
GETIMAGESIZE(3) 							 1							   GETIMAGESIZE(3)

getimagesize - Get the size of an image

SYNOPSIS
array getimagesize (string $filename, [array &$imageinfo]) DESCRIPTION
The getimagesize(3) function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML<IMG> tag and the correspondant HTTP content type. getimagesize(3) can also return some more information in $imageinfo parameter. Note Note that JPC and JP2 are capable of having components with different bit depths. In this case, the value for "bits" is the highest bit depth encountered. Also, JP2 files may contain multiple JPEG 2000 codestreams. In this case, getimagesize(3) returns the values for the first codestream it encounters in the root of the file. Note The information about icons are retrieved from the icon with the highest bitrate. PARAMETERS
o $filename - This parameter specifies the file you wish to retrieve information about. It can reference a local file or (configuration per- mitting) a remote file using one of the supported streams. o $imageinfo - This optional parameter allows you to extract some extended information from the image file. Currently, this will return the different JPG APP markers as an associative array. Some programs use these APP markers to embed text information in images. A very common one is to embed IPTC information in the APP13 marker. You can use the iptcparse(3) function to parse the binary APP13 marker into something readable. RETURN VALUES
Returns an array with up to 7 elements. Not all image types will include the channels and bits elements. Index 0 and 1 contains respectively the width and the height of the image. Note Some formats may contain no image or may contain multiple images. In these cases, getimagesize(3) might not be able to properly determine the image size. getimagesize(3) will return zero for width and height in these cases. Index 2 is one of the IMAGETYPE_XXX constants indicating the type of the image. Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag. mime is the correspondant MIME type of the image. This information can be used to deliver images with the correct HTTP Content-type header: Example #1 getimagesize(3) and MIME types <?php $size = getimagesize($filename); $fp = fopen($filename, "rb"); if ($size && $fp) { header("Content-type: {$size['mime']}"); fpassthru($fp); exit; } else { // error } ?> channels will be 3 for RGB pictures and 4 for CMYK pictures. bits is the number of bits for each color. For some image types, the presence of channels and bits values can be a bit confusing. As an example, GIF always uses 3 channels per pixel, but the number of bits per pixel cannot be calculated for an animated GIF with a global color table. On failure, FALSE is returned. ERRORS
/EXCEPTIONS If accessing the $filename image is impossible getimagesize(3) will generate an error of level E_WARNING. On read error, getimagesize(3) will generate an error of level E_NOTICE. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | Added icon support. | | | | | 5.2.3 | | | | | | | Read errors generated by this function down- | | | graded to E_NOTICE from E_WARNING. | | | | | 4.3.2 | | | | | | | Support for JPC, JP2, JPX, JB2, XBM, and WBMP | | | became available. | | | | | 4.3.2 | | | | | | | JPEG 2000 support was added for the $imageinfo | | | parameter. | | | | | 4.3.0 | | | | | | | | | | bits and channels are present for other image | | | types, too. | | | | | 4.3.0 | | | | | | | | | | mime was added. | | | | | 4.3.0 | | | | | | | Support for SWC and IFF was added. | | | | | 4.2.0 | | | | | | | Support for TIFF was added. | | | | | 4.0.6 | | | | | | | Support for BMP and PSD was added. | | | | | 4.0.5 | | | | | | | URL support was added. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #2 getimagesize(3) example <?php list($width, $height, $type, $attr) = getimagesize("img/flag.jpg"); echo "<img src="img/flag.jpg" $attr alt="getimagesize() example" />"; ?> Example #3 getimagesize (URL) <?php $size = getimagesize("http://www.example.com/gifs/logo.gif"); // if the file name has space in it, encode it properly $size = getimagesize("http://www.example.com/gifs/lo%20go.gif"); ?> Example #4 getimagesize() returning IPTC <?php $size = getimagesize("testimg.jpg", $info); if (isset($info["APP13"])) { $iptc = iptcparse($info["APP13"]); var_dump($iptc); } ?> NOTES
Note This function does not require the GD image library. SEE ALSO
image_type_to_mime_type(3), exif_imagetype(3), exif_read_data(3), exif_thumbnail(3). PHP Documentation Group GETIMAGESIZE(3)
All times are GMT -4. The time now is 05:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy