Lazycat Posted July 1, 2005 Share Posted July 1, 2005 (edited) This UDF is compilation of my previous image UDF's. Regardless of this fact, it's faster because was fully rewrited using DllStruct functions (they are great!) and API read functions. UDF get most usefull information about graphic files - size, color depth, resolution etc. For JPEG files it also retreive various Exif info.Changes from previous versions:+ Faster+ More info about other formats (instead only size).+ Exif parser seems correct now, so it works fine with the edited images.+ Much more Exif info retreived.- Works only with Beta (DllStruct)Probably it need more error checks, but I think it stable enough. Functionality enough for me and probably most folks, who want use it. Now I'm too bored and not plan make any serious changes until Autoit got native binary handling (if this sometime will be). But feel free to mention about bugs - they are here certainly.Edit (2007-07-25): updated version to work with latest Autoit.Edit (2009-01-12): updated attached file to 2.5 version.Edit (2010-03-18): updated attached file to 2.6 version.Edit (2010-04-29): updated attached file to 2.7 version.Edit (2010-10-08): updated attached file to 2.8 version.image_get_info.zipimage_get_info_30.zip Edited November 13, 2010 by Lazycat Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
jftuga Posted July 1, 2005 Share Posted July 1, 2005 Pretty awesome! It looks like that code was a lot of work. -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
Josbe Posted July 1, 2005 Share Posted July 1, 2005 Great work. Thanks Lazycat. An observation: I tested with some pictures and certain image shows incorrectly info with the comments. Perhaps a bug recognizing commentaries. Below, I share the image that showed the error. • AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Lazycat Posted July 2, 2005 Author Share Posted July 2, 2005 Thanks josbe for sharing, this helps to find this bug. Fixed version in the header post. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
blindwig Posted July 2, 2005 Share Posted July 2, 2005 Neat. The other info I would like is if the file is a paletted file (bit depth < 24) then retrieve the color palette table. I wrote some code a little while back to do this for GIFs, I'll see if I can dig it up... My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions Link to comment Share on other sites More sharing options...
busysignal Posted July 5, 2005 Share Posted July 5, 2005 Great Image UDF.. This will come in handy.. Cheers.. Link to comment Share on other sites More sharing options...
Ejoc Posted July 6, 2005 Share Posted July 6, 2005 Very nice, I can now delete the 1/2 completed version I have Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Lazycat Posted July 6, 2005 Author Share Posted July 6, 2005 Very nice, I can now delete the 1/2 completed version I haveWow, and what the second half is doing? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
blindwig Posted July 6, 2005 Share Posted July 6, 2005 Neat.The other info I would like is if the file is a paletted file (bit depth < 24) then retrieve the color palette table.I wrote some code a little while back to do this for GIFs, I'll see if I can dig it up...<{POST_SNAPBACK}>Found it:http://www.autoitscript.com/forum/index.ph...color++palette# My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions Link to comment Share on other sites More sharing options...
Carlos Posted July 7, 2005 Share Posted July 7, 2005 i get the following errors. C:\ImageInfo\image_get_info.au3(48,109) : ERROR: DllStructGetPtr(): undefined function. $t = DllStructCreate("int;int;short;short;dword;dword;dword;dword, DllStructGetPtr($p, 1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^ C:\ImageInfo\image_get_info.au3(48,115) : ERROR: DllStructCreate(): undefined function. $t = DllStructCreate("int;int;short;short;dword;dword;dword;dword, DllStructGetPtr($p, 1) + 18) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^ C:\ImageInfo\image_get_info.au3(49,65) : ERROR: DllStructGetData(): undefined function. _Add($sInfo, "Width, DllStructGetData($t, 1) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\ImageInfo\image_get_info.au3(76,23) : ERROR: DllStructDelete(): undefined function. DllStructDelete($p) ~~~~~~~~~~~~~~~~~~~~~~^ C:\ImageInfo\image_get_info.au3(133,31) : ERROR: DllStructGetSize(): undefined function. If DllStructGetSize($t) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\ImageInfo\image_get_info_example.au3 - 5 error(s), 0 warning(s) >AU3Check Ended. Link to comment Share on other sites More sharing options...
Lazycat Posted July 7, 2005 Author Share Posted July 7, 2005 i get the following errors.You noted that topic title says required beta? Download latest beta here in order to use it. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
w0uter Posted July 7, 2005 Share Posted July 7, 2005 you need the latest beta. and just tell au3check to stfu. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Tukata Posted February 19, 2006 Share Posted February 19, 2006 (edited) Being fresh new to autoIt I encounter the same problem each time and can't figure out what I am doing wrong. Simply, demos and examples don't work for me and I get errors all the time. For example, I tried this "image_get_info_example.au3" (using Beta+XP) after puting a second copy of "image_get_info.au3" in "C:\Program Files\AutoIt3\beta\Include" and compiles it. I get error. Please help Thank you Tuk Edited February 19, 2006 by Tukata Link to comment Share on other sites More sharing options...
Lazycat Posted February 19, 2006 Author Share Posted February 19, 2006 This cause latest beta have some changes since this udf was created. Please download fixed version http://www.autoitscript.com/fileman/users/Lazycat/image_get_info.zip. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Tukata Posted February 19, 2006 Share Posted February 19, 2006 This cause latest beta have some changes since this udf was createdWell, I uploaded new Beta but still get error.Local $ret=DllCall("kernel32.dll","int","CreateFile",_ ....ErrorError: Error parsing function call.Thank youTuk Link to comment Share on other sites More sharing options...
Lazycat Posted February 20, 2006 Author Share Posted February 20, 2006 Well, I uploaded new Beta but still get error.Local $ret=DllCall("kernel32.dll","int","CreateFile",_ ....ErrorDo you downloaded fixed UDF from link above?This version is fixed. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
eitan Posted February 20, 2006 Share Posted February 20, 2006 great work !! i suggest you add a pixelgetcolor function so that it can be retrieved without dispalying the image. this would be very usefull Link to comment Share on other sites More sharing options...
billmez Posted March 29, 2006 Share Posted March 29, 2006 (edited) This UDF is compilation of my previous image UDF's. Regardless of this fact, it's faster because was fully rewrited using DllStruct functions (they are great!) and API read functions. UDF get most usefull information about graphic files - size, color depth, resolution etc. For JPEG files it also retreive various Exif info. Changes from previous versions: + Faster + More info about other formats (instead only size). + Exif parser seems correct now, so it works fine with the edited images. + Much more Exif info retreived. - Works only with Beta (DllStruct) Probably it need more error checks, but I think it stable enough. Functionality enough for me and probably most folks, who want use it. Now I'm too bored and not plan make any serious changes until Autoit got native binary handling (if this sometime will be). But feel free to mention about bugs - they are here certainly. Hi, jpg images are only returning x & Y resolution and resolution unit. Gif images are returning information fine. I downloaded the latest udf from the last link. Any ideas? [edit] tif images are fine also [/edit] Edited March 29, 2006 by billmez Link to comment Share on other sites More sharing options...
ConsultingJoe Posted March 29, 2006 Share Posted March 29, 2006 wow, me likey. It tells me all my cam stats cool Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
is8591 Posted May 20, 2007 Share Posted May 20, 2007 Very nice UDF. Any plans on adding Write functionality? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now