Re: using webdna to determine pixel parameters
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 33758
interpreted = N
texte = I found this in my pile of messages to delete. It may be what you're looking for....--Robert Wade ====================== CABIN6 Design================================================|[ //\ ||} || ||\| V|================================================www.cabin6.com =============== robert@cabin6.comThis one always bothered me, so I took a whack at it this morning.The following code should pull the width and height values from all thegif files it finds in the same directory that the template is in -- WITHthe following exceptions:1) For all gifs 255 x 255 and under, there should be no problems.2) Any width or height value that's a multiple of 256 will beover-reported as 32 pixels larger (ie: 256 becomes 288, 512 = 544, 768 =800, etc)3) Any width or height value falling between 8192 and 8448 will begrossly *under*-reported.Of course, there wouldn't be *any* problems if WebCat didn't clean nullcharacters (remind me again why we're still saddled with this legacybecause of PageMill? ; ) but still, if you can live with the limitations,I thought the code may be of some use until WebCat 4 comes along.What ever happened to the [includeRAW] (not [include file&raw=T]) thatGrant had mentioned two years back?You'll need a hexadecimal to decimal conversion table to run this. One isavailable at:http://toastdesign.com/hexToDec.txt
| Filename | Width | Height | Image |
[listfiles /][showif [getchars start=1&end=4&from=end][filename][/getchars]=.gif][text]theFile=[include file=[filename]][/text][math show=f]loW=[convertchars db=hexToDec.txt][getcharsstart=7&end=7][theFile][/getchars][/convertchars][/math][math show=f]hiW=[convertchars db= hexToDec.txt][getcharsstart=8&end=8][theFile][/getchars][/convertchars][/math][math show=f]loH=[convertchars db= hexToDec.txt][getcharsstart=9&end=9][theFile][/getchars][/convertchars][/math][math show=f]hiH=[convertchars db= hexToDec.txt][getcharsstart=10&end=10][theFile][/getchars][/convertchars][/math][showif [hiW]!32][math show=f]width=[hiW]*256+[loW][/math][/showif][hideif [hiW]!32][math show=f]width=[loW][/math][/hideif][showif [hiH]!32][math show=f]height=[hiH]*256+[loH][/math][/showif][hideif [hiH]!32][math show=f]height=[loH][/math][/hideif]| [filename] | [width] | [height] |  |
[/showif][/listfiles]
Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Jeff Grady wrote:> Not too long ago someone posted a message that> contained some webDNA that calculated an image's pixel> parameters on the fly. I thought I saved it, but I> did not. If anyone has this message and could repost> it here, that would be awesome!>> Thanks!>> __________________________________________________> Do You Yahoo!?> Get Yahoo! Mail - Free email you can access from anywhere!> http://mail.yahoo.com/>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I found this in my pile of messages to delete. It may be what you're looking for....--Robert Wade ====================== CABIN6 Design================================================|[ //\ ||} || ||\| V|================================================www.cabin6.com =============== robert@cabin6.comThis one always bothered me, so I took a whack at it this morning.The following code should pull the width and height values from all thegif files it finds in the same directory that the template is in -- WITHthe following exceptions:1) For all gifs 255 x 255 and under, there should be no problems.2) Any width or height value that's a multiple of 256 will beover-reported as 32 pixels larger (ie: 256 becomes 288, 512 = 544, 768 =800, etc)3) Any width or height value falling between 8192 and 8448 will begrossly *under*-reported.Of course, there wouldn't be *any* problems if WebCat didn't clean nullcharacters (remind me again why we're still saddled with this legacybecause of PageMill? ; ) but still, if you can live with the limitations,I thought the code may be of some use until WebCat 4 comes along.What ever happened to the [includeRAW] (not [include file&raw=T]) thatGrant had mentioned two years back?You'll need a hexadecimal to decimal conversion table to run this. One isavailable at:http://toastdesign.com/hexToDec.txt| Filename | Width | Height | Image |
[listfiles /][showif [getchars start=1&end=4&from=end][filename][/getchars]=.gif][text]theFile=[include file=[filename]][/text][math show=f]loW=[convertchars db=hexToDec.txt][getcharsstart=7&end=7][theFile][/getchars][/convertchars][/math][math show=f]hiW=[convertchars db= hexToDec.txt][getcharsstart=8&end=8][theFile][/getchars][/convertchars][/math][math show=f]loH=[convertchars db= hexToDec.txt][getcharsstart=9&end=9][theFile][/getchars][/convertchars][/math][math show=f]hiH=[convertchars db= hexToDec.txt][getcharsstart=10&end=10][theFile][/getchars][/convertchars][/math][showif [hiW]!32][math show=f]width=[hiW]*256+[loW][/math][/showif][hideif [hiW]!32][math show=f]width=[loW][/math][/hideif][showif [hiH]!32][math show=f]height=[hiH]*256+[loH][/math][/showif][hideif [hiH]!32][math show=f]height=[loH][/math][/hideif]| [filename] | [width] | [height] |  |
[/showif][/listfiles]
Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Jeff Grady wrote:> Not too long ago someone posted a message that> contained some webDNA that calculated an image's pixel> parameters on the fly. I thought I saved it, but I> did not. If anyone has this message and could repost> it here, that would be awesome!>> Thanks!>> __________________________________________________> Do You Yahoo!?> Get Yahoo! Mail - Free email you can access from anywhere!> http://mail.yahoo.com/>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Robert Wade
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
multi-paragraph fields (1997)
A question on sub-categories (1997)
webmerchant/ Mac Auth. and CC refunds (1998)
New public beta available (1997)
[WebDNA] [middle] << assistance need (2016)
Progress !! WAS: Trouble with formula.db (1997)
Problems with upload / WebCat (1998)
Append problem w/" (1999)
Multiple instances of database (2003)
authorizenet and netscape (2002)
Web DNA... (2007)
Clearly.home (1998)
database freeze (1997)
ReturnRaw Returns (2000)
show all problem (1997)
Updating emailer (server) (2000)
CloseDataBase vs CommitDataBase (2007)
Possible Bug in 2.0b15.acgi (1997)
Other then credit cards-how? (1997)
OK, here goes... (1997)