Re: jpg and gif format thumbnails

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57703
interpreted = N
texte = > If you don't know whether an image has a .gif or .jpg thumbnail, then > you can to use [fileinfo] to determine which thumb file exists then > show that one. I'd code it something like this: You can also use WebDNA to determine whether the file is a .gif or .jpg (not based on extension). This is especially handy if the images are uploaded through a form, versus some other method. You can check the file as it is uploaded, determine whether it meets your requirements (ditch it if it doesn't), and set the file extension on the image and file type in the database. A couple of years back, I posted some code to this list that shows how to do that. You can view it here: http://search.smithmicro.com/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=31235&max=1&words=bonsall Dennis ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: jpg and gif format thumbnails ( "Dennis J. Bonsall, Jr." 2004)
  2. Re: jpg and gif format thumbnails ( Brian Fries 2004)
  3. Re: jpg and gif format thumbnails ( Kenneth Grome 2004)
  4. jpg and gif format thumbnails ( Lester 2004)
> If you don't know whether an image has a .gif or .jpg thumbnail, then > you can to use [fileinfo] to determine which thumb file exists then > show that one. I'd code it something like this: You can also use WebDNA to determine whether the file is a .gif or .jpg (not based on extension). This is especially handy if the images are uploaded through a form, versus some other method. You can check the file as it is uploaded, determine whether it meets your requirements (ditch it if it doesn't), and set the file extension on the image and file type in the database. A couple of years back, I posted some code to this list that shows how to do that. You can view it here: http://search.smithmicro.com/TalkListArchive/DetailResults.tpl?command=search&db=webdna-talk.db&eqIDdata=31235&max=1&words=bonsall Dennis ------------------------------------------------------------- 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://webdna.smithmicro.com/ "Dennis J. Bonsall, Jr."

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:

2.0 Info (1997) Package Prices (2000) Need relative path explanation (1997) Forms Search Questions (1997) webcat NT with [dos] command (1997) Re[2]: Problem with new formvariables (2000) E-Mail Preferences in Admin Folder (1997) maximu values for sendmail! (1997) WebCat2b13MacPlugIn - More limits on [include] (1997) Falsifying [BROWSERNAME] (1998) Web Catalog vs. ICAT (1997) browser info.txt and SSL (1997) emailer w/F2 (1997) For those of you not on the WebCatalog Beta... (1997) Another question (1997) [WebDNA] function not as expected (2010) Document Contains no data, or showcart error. (1997) WebCatalog can't find database (1997) listfiles-looking for slick solution (1997) info (1997)