Hey Will,

This how you could do it:

<!--- call image thumbnailer --->
<cfx_image
        action="iml"
        file="#expandpath('yourfile.gif')#"
        commands="
        ## set width of thumbnail
        setvar thumbwidth=100

        ## resize if width of original image is gt thumbwidth
        resizeif <thumbwidth>,-1,<thumbwidth>

        ## set border color for image
        setbordercolor 000000

        ## create border around image
        rect -2,<bottom>-1,-1,-1,000000

        ## write file to disk
        write #expandpath('thumb.gif')#">

<!-- display image -->
<img src="thumb.gif">

Let me know if you have any questions..

HTH,

Joseph DeVore
VeloxWeb Technologies



-----Original Message-----
From: W Luke [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 02, 2002 12:28 PM
To: CF-Talk
Subject: Re: Borders in cfx_image


Thanks Joseph.  Can this be used in conjunction with resizing, as below?  It
didn't seem to work just now when I tried it, although no errors were
reported either..

<CFX_IMAGE ACTION="IML"
  FILE="#file_to_thumbnail#"
  COMMANDS="
 setbordercolor 000000
 bfrect x,y,x2,y2,FFFFFF

  ## thumbnail sizes
 setvar x=125

  ## Resizing to thumbnail -- defaults to 100 wide
  resize <x>

  ## write it!
  write #thumb_filename#">

Will

----- Original Message -----
From: "Joseph DeVore" <[EMAIL PROTECTED]>
Newsgroups: gradwell.lists.cftalk
Sent: Saturday, February 02, 2002 8:12 PM
Subject: RE: Borders in cfx_image


> Yes, it is possible to add borders to images with CFX_Image
>
> this command will set the border color:
>
> setbordercolor 000000
>
> this command will draw a solid colored rectangle with the border color
above
>
> bfrect x,y,x2,y2,FFFFFF
>
>
> HTH,
>
> Joseph DeVore
> VeloxWeb Technologies
>
>
>
>
> -----Original Message-----
> From: W Luke [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 9:58 AM
> To: CF-Talk
> Subject: Borders in cfx_image
>
>
> Hi.
>
> Is it possible to draw a thin black border around images using cfx_image?
I
> have about 100 need doing, and it would be nice to batch-process them if
> cfx_image is capable of this.
>
> Will
>
>
>

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to