Rick Root's image.cfc errors

2006-04-12 Thread Andy Matthews
Rick...

I'm posting this for someone on the SitePoint forums. I suggested that
someone use your image.cfc and this fellow replied with an error that's he's
experienced:

[quote]
If you upload a jpg image with an invalid ICC profile it WILL crash Jrun.
[/quote]

That thread can be found here:
http://www.sitepoint.com/forums/showthread.php?p=2653861

Just thought I'd let you know.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237521
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Rick Root's image.cfc errors

2006-04-12 Thread Rick Root
Andy Matthews wrote:
 Rick...
 
 I'm posting this for someone on the SitePoint forums. I suggested that
 someone use your image.cfc and this fellow replied with an error that's he's
 experienced:
 
 [quote]
 If you upload a jpg image with an invalid ICC profile it WILL crash Jrun.
 [/quote]
 
 That thread can be found here:
 http://www.sitepoint.com/forums/showthread.php?p=2653861

Actually he's referring to the image.cfc that's included in CFFM, which 
is Jim Dew's work.

the imageCFC you are referring to is my revamped version of it that was 
released separately and not yet integrated into any of my other apps.

I don't know what an invalid ICC profile is, to be quite honest, so I'm 
not sure how to test or solve the problem, nor am I sure if the problem 
still exists in the new imageCFC.

If Neil wants to contact me directly he's welcome to, I don't recall 
seeing any messages from him...

Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237531
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Rick Root's image.cfc errors

2006-04-12 Thread Andy Matthews
I will post that message on the forum on your behalf if that's alright. I've
never had any issues with your work so it might be that he's referring to
Jim.

I used to be a designer and I've not quite familiar with that issue either.
Likely it's an uncommon one.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 12, 2006 10:20 AM
To: CF-Talk
Subject: Re: Rick Root's image.cfc errors


Andy Matthews wrote:
 Rick...

 I'm posting this for someone on the SitePoint forums. I suggested that
 someone use your image.cfc and this fellow replied with an error that's
he's
 experienced:

 [quote]
 If you upload a jpg image with an invalid ICC profile it WILL crash
Jrun.
 [/quote]

 That thread can be found here:
 http://www.sitepoint.com/forums/showthread.php?p=2653861

Actually he's referring to the image.cfc that's included in CFFM, which
is Jim Dew's work.

the imageCFC you are referring to is my revamped version of it that was
released separately and not yet integrated into any of my other apps.

I don't know what an invalid ICC profile is, to be quite honest, so I'm
not sure how to test or solve the problem, nor am I sure if the problem
still exists in the new imageCFC.

If Neil wants to contact me directly he's welcome to, I don't recall
seeing any messages from him...

Rick




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237535
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Rick Root's image.cfc errors

2006-04-12 Thread Alan Rother
I've seen this issue with other Java based image editors.

This comes mostly from Photoshop CS, and usually from a Mac. There is an
option to embed a color profile into your jpgs on export. If you do this,
then for some odd reason java can't properly read the image.

I've never found a java based solution to the problem. I usually have to
open the images in Photoshop and resave them without the embedded color
profile.


--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237538
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Rick Root's image.cfc errors

2006-04-12 Thread Rick Root
Alan Rother wrote:
 I've seen this issue with other Java based image editors.
 
 This comes mostly from Photoshop CS, and usually from a Mac. There is an
 option to embed a color profile into your jpgs on export. If you do this,
 then for some odd reason java can't properly read the image.
 
 I've never found a java based solution to the problem. I usually have to
 open the images in Photoshop and resave them without the embedded color
 profile.

I don't feel so bad if that's the case :)

I'm guessing that the image type returned by java ends up being 
TYPE_CUSTOM then, which it cannot handle.

If *THAT* is the case, then imageCFC handles it by returning the 
following trapped error message:

The image format or subformat cannot be modified by
the image.cfc component.  For example, RGB format PNGs
are not supported, even though indexed color PNGs are
supported.  Technical detail:  The requested image was
of type java.awt.image.BufferedImage.TYPE_CUSTOM.


That's actually part of the readImageFromFile() and readImageFromURL() 
methods in the CFC.

The old image.cfc written by Jim Dew that is packaged with CFFM does not 
handle that, and probably does generate an exception.

rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237542
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54