getting images' width/height

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17217
interpreted = N
texte = Does anybody know of a way within WebCat, or via AppleScript, to get the width and height of an image (jpeg and/or gif)?In the application I'm developing, the user selects an image from a [listfiles]-generated pulldown list as part of a form. The next page puts that choice into a database for later use in rendering html pages. For display reasons, I need to include height and width in these pages. Because I perform a number of calculations based on these values, they need to be kept in fields in the database as well. Currently the user has to specify a height and width for the image, but I'd really like to be able to automate this.FYI, a separate database with width and height for each image is not an option: I would like to eliminate the need for a person to ever manually enter those numbers.Any ideas? o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Associated Messages, from the most recent to the oldest:

    
  1. Re: getting images' width/height (Dave MacLeay 1998)
  2. Re: getting images' width/height (Christer Olsson 1998)
  3. Re: getting images' width/height (Brian B. Burton 1998)
  4. Re: getting images' width/height (PCS Technical Support 1998)
  5. getting images' width/height (Dave MacLeay 1998)
Does anybody know of a way within WebCat, or via AppleScript, to get the width and height of an image (jpeg and/or gif)?In the application I'm developing, the user selects an image from a [listfiles]-generated pulldown list as part of a form. The next page puts that choice into a database for later use in rendering html pages. For display reasons, I need to include height and width in these pages. Because I perform a number of calculations based on these values, they need to be kept in fields in the database as well. Currently the user has to specify a height and width for the image, but I'd really like to be able to automate this.FYI, a separate database with width and height for each image is not an option: I would like to eliminate the need for a person to ever manually enter those numbers.Any ideas? o--------------- Dave MacLeay --+ o----------- Digital Frontier --+ o--- dave@digitalfrontier.com --+ Dave MacLeay

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:

can webcat create directories on NT? (1997) Problems passing [SKU] with $Replace in 2.0 (1997) My slower response (1997) triggering an update of two frames (1998) Extended [Concvertchars] needed (1997) WCS Newbie question (1997) Re:quit command on NT (1997) [founditems] & radiobuttons - CONCLUSION (2002) WebCat2: Items xx to xx shown, etc. (1997) [ModDate] & [ModTime] ? (1997) quit command on NT (1997) Closing Databases (1998) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) [search] in formulas.db (1997) Search in 2 or more catalogs (1997) [WebDNA] Updating WebDNA 8.x to WebDNA 8.2 (2016) Re[2]: 2nd WebCatalog2 Feature Request (1996) Web Catalog vs. ICAT (1997) Plugin or CGI or both (1997) Editing the search string (1997)