I have a script that returns image properties to me (below). After years of
using it I've hit some sort of file that crashes it. The error I'm getting is:
Numbers of source Raster bands and source color space components do not
match null
I'm assuming that from a corrupt image file
If there is an error in your error handling code you will get a hard error. It
may be because you are still attempting to work with the corrupt file in
your catch.
Change this:
To this:
...and see if it makes the error go away.
-Cameron
On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison
wrote
http://www.austin-williams.com/blog
Twitter: http://www.twitter.com/austin_williams
-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Tuesday, September 09, 2014 1:25 PM
To: cf-talk
Subject: Re: CFTRY / CFCATCH not working
If there is an error in your e
Any particular reason you are not using cfscript versions of try/catch?
Old version of CF?
try {
code goes here
}
catch(Any excpt) {
code goes here
}
Given any thought to a different image processor to see if you get a
different result? I'm thinking cfimage, assuming you are using at leas
From: Cameron Childress [mailto:camer...@gmail.com]
> Sent: Tuesday, September 09, 2014 1:25 PM
> To: cf-talk
> Subject: Re: CFTRY / CFCATCH not working
>
>
> If there is an error in your error handling code you will get a hard
> error. It may be because you are still attempting t
It's a seven year old site but it's on a CF10 server. Tried using CFIMAGE but
it's too slow.
Robert Harrison
Director of Interactive Services
Austin & Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788
T 631.231.6600 X 119 F 631.434.
Looks like the code you are using is bhImgInfo() from cflib, with only very
slight changes. There's more than one way to skin that cat:
https://gist.github.com/vikaskanani/6256084
looks more robust in the catch department. Maybe a little too robust, but
it also separates out the file read from
not an answer to your question, but have you tried using ImageMagick or
cfx_openimage instead ?
I have found both to be more reliable than CF's built in image handling.
On Tue, Sep 9, 2014 at 6:56 PM, Robert Harrison
wrote:
>
> It's a seven year old site but it's on a CF10 server. Tried using
8 matches
Mail list logo