Re: getting images' width/height

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17245
interpreted = N
texte = Thanks, Christer. That's exactly the sort of solution I was looking for. At 3:33 AM 4/24/98, Christer Olsson wrote: >>Does anybody know of a way within WebCat, or via AppleScript, to get the >>width and height of an image (jpeg and/or gif)? > >Get clip2gif from your favourite InfoMac mirror and embed an Applescript like: > >tell application clip2gif > set f to YourFilePathHere > set m to measure f > set width to item 1 of m > set height to item 2 of m >end tell > >in your [Listfiles context]. A good idea is to put a check for filetype >somewhere. > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Art director S-211 37 Malmoe Fax +46 40 97 99 77 > Ljusa Ideer AB Sweden http://www.ljusaideer.se 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)
Thanks, Christer. That's exactly the sort of solution I was looking for. At 3:33 AM 4/24/98, Christer Olsson wrote: >>Does anybody know of a way within WebCat, or via AppleScript, to get the >>width and height of an image (jpeg and/or gif)? > >Get clip2gif from your favourite InfoMac mirror and embed an Applescript like: > >tell application clip2gif > set f to YourFilePathHere > set m to measure f > set width to item 1 of m > set height to item 2 of m >end tell > >in your [Listfiles context]. A good idea is to put a check for filetype >somewhere. > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Art director S-211 37 Malmoe Fax +46 40 97 99 77 > Ljusa Ideer AB Sweden http://www.ljusaideer.se 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:

Protecting Files (2005) search form problem.. (1997) [isfile] ? (1997) WebCatalog 4.0 is now available (2000) Web Catalog vs. ICAT (1997) Chat (2000) [math] and ceil (2004) WebCat2 - Getting to the browser's username/password data (1997) Error Log.db --however (1997) WebCatalog2 Feature Feedback (1996) ShowNext (1997) Reversed words (1997) Protect vs Authenicate (1997) webcat2b12 CGI -- Date comparisons (1997) Another question (1997) Viewing old carts (was FEW QUESTIONS) (1997) Making Thumbnail Graphics (1997) Problems with [Search] param - Mac Plugin b15 (1997) [WebDNA] crashing loop (2011) Emailer [cart] file names (1997)