Re: Imagemagick, webdna, etc

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66212
interpreted = N
texte = neat. I'm trying to rename the photos to coincide with the post being made.... I'll try to merge this into it when I do that. --- Steve Craig wrote: > Hi > > I use imagemagick to do this, very simple to set up. > The only real > problem I have found is that IM doesn't seem to like > filenames with > spaces ie "My Pic.jpg". I'm sure I could probably > sort these before > WebDNA gives it to IM though, just never quite got > round to it. > > If you need some code then the main bits of what I > use are as > follows. My upload page has a checkbox that the user > can click to add > a 1 pixel border to pic hence the [showif] bit and a > drop down to > select a size [sizereq]. > > [shell] > convert ../[UploadedPath][SourceName] -resize > [sizereq]x[sizereq] > [showif [makeBorder]=T]-bordercolor black -border > 1[/showif] ../ > [TargetPath][FinishedName] > [/shell] > > Hope this helps > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > On 9 Feb 2006, at 14:39, Lester wrote: > > > Is something like this possible??? > > > > User uploads a photo > > It's huge, 2048x1536 > > It might even have a weird filename > > Needs to be no wider than 437.... > > and rename it to match an enttry in the db > > > > > > Can Imagemagic (or maybe an .asp product) > > rename the image and resize it with no > intervention > > on my part or the users part??? > > > > I was experimenting with this a while ago but > > Imagemagick choked when it came across a bad file > name > > and I put it all aside. > > > > Not sure if the seamless end result is even > possible. > > > > (I prefer not to force size and filename issues > onto > > users prior to uploading an image.) > > > > > > Anyone doing something like this??? > > I'm using vers. 4.5 on IIS Server 2003 > > > > Lester > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > 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 > > digest@talk.smithmicro.com> > > Web Archive of this list is at: > http://webdna.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://webdna.smithmicro.com/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Imagemagick, webdna, etc ( "Dan Strong" 2006)
  2. Re: Imagemagick, webdna, etc ( Lester 2006)
  3. Re: Imagemagick, webdna, etc ( Steve Craig 2006)
  4. Re: Imagemagick, webdna, etc ( devaulw@onebox.com 2006)
  5. Imagemagick, webdna, etc ( Lester 2006)
neat. I'm trying to rename the photos to coincide with the post being made.... I'll try to merge this into it when I do that. --- Steve Craig wrote: > Hi > > I use imagemagick to do this, very simple to set up. > The only real > problem I have found is that IM doesn't seem to like > filenames with > spaces ie "My Pic.jpg". I'm sure I could probably > sort these before > WebDNA gives it to IM though, just never quite got > round to it. > > If you need some code then the main bits of what I > use are as > follows. My upload page has a checkbox that the user > can click to add > a 1 pixel border to pic hence the [showif] bit and a > drop down to > select a size [sizereq]. > > [shell] > convert ../[UploadedPath][SourceName] -resize > [sizereq]x[sizereq] > [showif [makeBorder]=T]-bordercolor black -border > 1[/showif] ../ > [TargetPath][FinishedName] > [/shell] > > Hope this helps > > Cheers > ======================================== > Steve Craig - Asylum Interactive Ltd > Tel +44 1330 860550 Fax +44 1330 860880 > ======================================== > http://www.asylumweb.com > Email: steve@asylumweb.com > Skype: s.craig - iChat: steve.craig > ======================================== > > > On 9 Feb 2006, at 14:39, Lester wrote: > > > Is something like this possible??? > > > > User uploads a photo > > It's huge, 2048x1536 > > It might even have a weird filename > > Needs to be no wider than 437.... > > and rename it to match an enttry in the db > > > > > > Can Imagemagic (or maybe an .asp product) > > rename the image and resize it with no > intervention > > on my part or the users part??? > > > > I was experimenting with this a while ago but > > Imagemagick choked when it came across a bad file > name > > and I put it all aside. > > > > Not sure if the seamless end result is even > possible. > > > > (I prefer not to force size and filename issues > onto > > users prior to uploading an image.) > > > > > > Anyone doing something like this??? > > I'm using vers. 4.5 on IIS Server 2003 > > > > Lester > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > 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 > > digest@talk.smithmicro.com> > > Web Archive of this list is at: > http://webdna.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://webdna.smithmicro.com/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around 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://webdna.smithmicro.com/ Lester

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:

Providing hard copy of database to client (1997) [LOOKUP] (1997) Pithy questions on webcommerce & siteedit (1997) convertwords BUG (2002) Mozilla/4. and Browser Info.txt (1997) Webcatter Wanted (2000) Separate SSL Server (1997) SQL statements (2002) Only charge card when product shipped ? (1997) Confirming a bug/oddity (2003) WC2b15 File Corruption (1997) [search] in formulas.db (1997) searching multiple databases in single search (1997) Searching for (field1 OR field2) AND field3 (2000) Upload and WebCat (1998) Individual Tax on Items (1998) 2 easy questions re: [showif] and [sendmail] (1997) Flash 4 Examples (2000) Cookies and the EU (John, don't read this) (2001) quantity [addlineitem] (2001)