RE: Resizing images under Linux

2002-11-06 Thread Benoit Hediard
Hi,

Indeed, ImageJ is another imaging Java library, it is easier to use than
JAI.
It supports GIF and it is the world's fastest pure Java image processing
program. It can filter a 2048x2048 image in 0.5 seconds. That's over 8
million pixels per second!.

If you look at Todd's ones and my examples
(http://www.benorama.com/coldfusion/libraries/imaging.htm), you'll see that
it is very easy to use from CF.

I don't know about the quality of the generated thumbnails compared to JAI
ones...

Benoit Hediard
www.benorama.com

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:todd;web-rat.com]
Envoyé : mardi 5 novembre 2002 23:23
À : CF-Talk
Objet : RE: Resizing images under Linux


My research with the ImageJ library:
http://www.web-rat.com/mt2/mt-search.cgi?IncludeBlogs=2search=image+j

Ben Hediard pointed imageJ out to me ages ago -
http://rsb.info.nih.gov/ij/index.html

~Todd

On Tue, 5 Nov 2002, Kevin Graeme wrote:

 I read that article before, and it looks to me that the huge downside of
JAI
 is the lack of GIF support.

 it can write BMP, JPG, TIF, PNG, but if you must write GIF files, then
you’
 ll have to find another implementation (note that the PNG file format is
an
 acceptable substitute for GIF file format).

 I would love it if PNG were an acceptable substitute, but it's
 implementation in browsers seems worse than CSS.

 -Kevin

  -Original Message-
  From: Sean A Corfield [mailto:sean;corfield.org]
  Sent: Tuesday, November 05, 2002 1:47 PM
  To: CF-Talk
  Subject: Re: Resizing images under Linux
 
 
  Check out JAI - the Java image library. Matt Liotta wrote an article on
  this for the DesDev Center recently... *searches*
 
  http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html
 
  That Java code should be callable from CF5.
 
  On Tuesday, Nov 5, 2002, at 11:30 US/Pacific, Rick Root wrote:
 
   Nope, requires windows... and as I said I'm using Linux.
  
   I'm researching the GD library which would allow me to write a perl
   script and call that via CFEXECUTE... but I'd much rather find an
   existing solution :)
  
 - Rick
  
   Ryan Farrell wrote:
   We are working with something called AutoImager.  Our particular
   solution
   requires that we resize images and create thumbnails in a nightly
   batch, but
   the program may be able to meet your requirements.  Check it out at
   http://www.mystikmedia.com/autoimager.asp.
 
  I can smell your brains!
  -- Mittens the Kitten : http://www.matazone.co.uk/theotherside.html
 
 


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: Resizing images under Linux

2002-11-06 Thread Paul Hastings
 Indeed, ImageJ is another imaging Java library, it is easier to use than
 JAI.
 It supports GIF and it is the world's fastest pure Java image processing
 program. It can filter a 2048x2048 image in 0.5 seconds. That's over 8
 million pixels per second!.

i can attest to this, JAI might be more overall functional but imageJ is
easier  as fast or faster from our tests.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 31/10/2545

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Resizing images under Linux

2002-11-06 Thread Rick Root
Thanks for all your suggestions everyone.   I think CF_ImageMagick is 
the way I'm going to go, as it seems to do everything I want, I already 
have ImageMagick installed on my server, and I don't have to write any 
fancy code other than that handles the automatic creation and caching of 
thumbnails... basically a custom tag I'm calling CF_THUMBNAIL.

Assuming a file named '97.jpg' is 500x733,

CF_THUMBNAIL FILENAME=/home/rickroot/www/photo_gallery/97.jpg 
WIDTH=100

will generate

IMG SRC=/photo_gallery/thumbnail_97.jpg WIDTH=100 HEIGHT=146

the CF_THUMBNAIL custom tag will automatically check for the existence 
of the thumbnail image, and compare it's date to the original file.. and 
generate a new thumbnail only if necessary.  It generates the thumbnail
image with dimensions specified, and will scale evenly by detecting 
original size using the CF_IMAGESIZE tag I found in the developer's 
exchange.

  - Rick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Problems with dynamically generated images... (was Re: Resizing images under Linux)

2002-11-06 Thread Rick Root
Okay... so I'm using CF_MagickTag to generate my thumbnails, and it's 
doing an admirable job of it.

HOWEVER, the image doesn't appear properly the first time a thumbnail is 
generated... it's almost as if the page is loading BEFORE the thumbnail 
is completely generated.

For an example, go here:

http://www.rickroot.com/photo_gallery/test.cfm?WIDTH=200

Change the WIDTH attribute in the URL to something else... like
105 or 51 or 423...

If you load the page (and you're the first person to choose a certain 
dimension), you'll see a broken image.  Right click and choose Show 
Picture and the image shows up just fine.. or reload the page, and it 
shows up just fine.

Anyone here got any ideas what might be going on?

  - Rick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Problems with dynamically generated images... (was Re: Resizing images under Linux)

2002-11-06 Thread Bob Haroche
Cute kid!

I didn't see what you're describing, but I have seen it before on a variety
of sites when using IE 6. For some reason, the browser sometimes doesn't
want to show images the first time.

Are you finding this problem in other browsers too?

---
Regards,
Bob Haroche
O n P o i n t  S o l u t i o n s
www.OnPointSolutions.com

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Problems with dynamically generated images... (was Re: Resizing images under Linux)

2002-11-06 Thread Rick Root
Bob Haroche wrote:
 
 I didn't see what you're describing, but I have seen it before on a variety
 of sites when using IE 6. For some reason, the browser sometimes doesn't
 want to show images the first time.
 
 Are you finding this problem in other browsers too?

Goodness... you know I hadn't even thought to test it in Mozilla yet (I 
do all my development with IE, but I actually use Mozilla as my primary 
browser when I can).

Sure enough, it works fine in Mozilla.

I wonder if there is a solution to this problem.

  - Rick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Problems with dynamically generated images... (was Re: Resizing images under Linux)

2002-11-06 Thread Rick Root
Bob Haroche wrote:
 Cute kid!
 
 I didn't see what you're describing, but I have seen it before on a variety
 of sites when using IE 6. For some reason, the browser sometimes doesn't
 want to show images the first time.
 
 Are you finding this problem in other browsers too?

Crud, I take it back... the problem DOES exist in Mozilla as well.
(I had apparently picked a size that already had a thumbnail)

  - Rick



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Resizing images under Linux

2002-11-05 Thread Ryan Farrell
We are working with something called AutoImager.  Our particular solution
requires that we resize images and create thumbnails in a nightly batch, but
the program may be able to meet your requirements.  Check it out at
http://www.mystikmedia.com/autoimager.asp.

Ryan

-Original Message-
From: Rick Root [mailto:rroot;wakeinternet.com]
Sent: Tuesday, November 05, 2002 12:30 PM
To: CF-Talk
Subject: Resizing images under Linux


I am running CF5.0 under Linux, and I need to be able to resize images
on the fly...  Ie, resize the image and cache the thumbnail image so it
doesn't have to do it again UNLESS the base image has changed.

There is a tag out there that can do this under Windows, but there
are two problems:

#1 - I can't find it.
#2 - I'm using Linux, and unless I'm mistaken, CFX DLL's don't work in
  Linux (do they?)

Thanks

Rick Root
http://www.wakeinternet.com/


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Resizing images under Linux

2002-11-05 Thread Rick Root
Nope, requires windows... and as I said I'm using Linux.

I'm researching the GD library which would allow me to write a perl
script and call that via CFEXECUTE... but I'd much rather find an
existing solution :)

  - Rick

Ryan Farrell wrote:
 We are working with something called AutoImager.  Our particular solution
 requires that we resize images and create thumbnails in a nightly batch, but
 the program may be able to meet your requirements.  Check it out at
 http://www.mystikmedia.com/autoimager.asp.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Resizing images under Linux

2002-11-05 Thread Sean A Corfield
Check out JAI - the Java image library. Matt Liotta wrote an article on 
this for the DesDev Center recently... *searches*

http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html

That Java code should be callable from CF5.

On Tuesday, Nov 5, 2002, at 11:30 US/Pacific, Rick Root wrote:

 Nope, requires windows... and as I said I'm using Linux.

 I'm researching the GD library which would allow me to write a perl
 script and call that via CFEXECUTE... but I'd much rather find an
 existing solution :)

   - Rick

 Ryan Farrell wrote:
 We are working with something called AutoImager.  Our particular 
 solution
 requires that we resize images and create thumbnails in a nightly 
 batch, but
 the program may be able to meet your requirements.  Check it out at
 http://www.mystikmedia.com/autoimager.asp.

I can smell your brains!
-- Mittens the Kitten : http://www.matazone.co.uk/theotherside.html

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Resizing images under Linux

2002-11-05 Thread Robert Everland
What about this article that Matt Liota posted
http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com 

-Original Message-
From: Rick Root [mailto:rroot;wakeinternet.com] 
Sent: Tuesday, November 05, 2002 2:30 PM
To: CF-Talk
Subject: Re: Resizing images under Linux


Nope, requires windows... and as I said I'm using Linux.

I'm researching the GD library which would allow me to write a perl script
and call that via CFEXECUTE... but I'd much rather find an existing solution
:)

  - Rick

Ryan Farrell wrote:
 We are working with something called AutoImager.  Our particular 
 solution requires that we resize images and create thumbnails in a 
 nightly batch, but the program may be able to meet your requirements.  
 Check it out at http://www.mystikmedia.com/autoimager.asp.



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Resizing images under Linux

2002-11-05 Thread Douglas.Knudsen
IIRC, you can do some GD stuff with PHP...

-Original Message-
From: Rick Root [mailto:rroot;wakeinternet.com]
Sent: Tuesday, November 05, 2002 2:30 PM
To: CF-Talk
Subject: Re: Resizing images under Linux


Nope, requires windows... and as I said I'm using Linux.

I'm researching the GD library which would allow me to write a perl
script and call that via CFEXECUTE... but I'd much rather find an
existing solution :)

  - Rick

Ryan Farrell wrote:
 We are working with something called AutoImager.  Our 
particular solution
 requires that we resize images and create thumbnails in a 
nightly batch, but
 the program may be able to meet your requirements.  Check it out at
 http://www.mystikmedia.com/autoimager.asp.



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Resizing images under Linux

2002-11-05 Thread Josh Trefethen
This is what I run on my linux box with cf5:

http://www.imagemagick.org/ 

http://www.alagad.com/index.cfm/name-mtdownload this is the cf custom
tag.

Works like a charm and is very powerful...

FYI: I have this preinstalled and available for anyone with a hosting
account on my server.

--
Josh Trefethen

:[ Exciteworks, Inc ]::[ http://exciteworks.com ]:.
::[ cf hosting on linux ]::[ consulting ]::[ expertise ]::.

-Original Message-
From: Rick Root [mailto:rroot;wakeinternet.com] 
Sent: Tuesday, November 05, 2002 10:30 AM
To: CF-Talk
Subject: Resizing images under Linux

I am running CF5.0 under Linux, and I need to be able to resize images
on the fly...  Ie, resize the image and cache the thumbnail image so it
doesn't have to do it again UNLESS the base image has changed.

There is a tag out there that can do this under Windows, but there
are two problems:

#1 - I can't find it.
#2 - I'm using Linux, and unless I'm mistaken, CFX DLL's don't work in
  Linux (do they?)

Thanks

Rick Root
http://www.wakeinternet.com/


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Resizing images under Linux

2002-11-05 Thread Jesse Houwing
Rick Root wrote:
 Nope, requires windows... and as I said I'm using Linux.
 
 I'm researching the GD library which would allow me to write a perl
 script and call that via CFEXECUTE... but I'd much rather find an
 existing solution :)

There is a CF_ImageMagick tag somewhere...

Ahh there it is:

http://www.alagad.com/index.cfm/name-products

it works on Windows AND Linux, which makes it a nice tool for cross 
platform development.

Jesse


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Resizing images under Linux

2002-11-05 Thread Kevin Graeme
I read that article before, and it looks to me that the huge downside of JAI
is the lack of GIF support.

it can write BMP, JPG, TIF, PNG, but if you must write GIF files, then you’
ll have to find another implementation (note that the PNG file format is an
acceptable substitute for GIF file format).

I would love it if PNG were an acceptable substitute, but it's
implementation in browsers seems worse than CSS.

-Kevin

 -Original Message-
 From: Sean A Corfield [mailto:sean;corfield.org]
 Sent: Tuesday, November 05, 2002 1:47 PM
 To: CF-Talk
 Subject: Re: Resizing images under Linux


 Check out JAI - the Java image library. Matt Liotta wrote an article on
 this for the DesDev Center recently... *searches*

 http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html

 That Java code should be callable from CF5.

 On Tuesday, Nov 5, 2002, at 11:30 US/Pacific, Rick Root wrote:

  Nope, requires windows... and as I said I'm using Linux.
 
  I'm researching the GD library which would allow me to write a perl
  script and call that via CFEXECUTE... but I'd much rather find an
  existing solution :)
 
- Rick
 
  Ryan Farrell wrote:
  We are working with something called AutoImager.  Our particular
  solution
  requires that we resize images and create thumbnails in a nightly
  batch, but
  the program may be able to meet your requirements.  Check it out at
  http://www.mystikmedia.com/autoimager.asp.

 I can smell your brains!
 -- Mittens the Kitten : http://www.matazone.co.uk/theotherside.html

 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Resizing images under Linux

2002-11-05 Thread todd
My research with the ImageJ library:
http://www.web-rat.com/mt2/mt-search.cgi?IncludeBlogs=2search=image+j

Ben Hediard pointed imageJ out to me ages ago - 
http://rsb.info.nih.gov/ij/index.html

~Todd

On Tue, 5 Nov 2002, Kevin Graeme wrote:

 I read that article before, and it looks to me that the huge downside of JAI
 is the lack of GIF support.
 
 it can write BMP, JPG, TIF, PNG, but if you must write GIF files, then you’
 ll have to find another implementation (note that the PNG file format is an
 acceptable substitute for GIF file format).
 
 I would love it if PNG were an acceptable substitute, but it's
 implementation in browsers seems worse than CSS.
 
 -Kevin
 
  -Original Message-
  From: Sean A Corfield [mailto:sean;corfield.org]
  Sent: Tuesday, November 05, 2002 1:47 PM
  To: CF-Talk
  Subject: Re: Resizing images under Linux
 
 
  Check out JAI - the Java image library. Matt Liotta wrote an article on
  this for the DesDev Center recently... *searches*
 
  http://www.macromedia.com/desdev/mx/coldfusion/articles/jai_images.html
 
  That Java code should be callable from CF5.
 
  On Tuesday, Nov 5, 2002, at 11:30 US/Pacific, Rick Root wrote:
 
   Nope, requires windows... and as I said I'm using Linux.
  
   I'm researching the GD library which would allow me to write a perl
   script and call that via CFEXECUTE... but I'd much rather find an
   existing solution :)
  
 - Rick
  
   Ryan Farrell wrote:
   We are working with something called AutoImager.  Our particular
   solution
   requires that we resize images and create thumbnails in a nightly
   batch, but
   the program may be able to meet your requirements.  Check it out at
   http://www.mystikmedia.com/autoimager.asp.
 
  I can smell your brains!
  -- Mittens the Kitten : http://www.matazone.co.uk/theotherside.html
 
  
 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com