cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <agalla...@agssa.net>
Subject Re: Imageop - type selection
Date Wed, 02 Aug 2006 04:22:49 GMT
Kamal Bhatt escribió:
>
> Hi
> I have noticed something curious about imageop. We allow our clients 
> to enter images into our system. Now, and we know this is bad design, 
> they are allowed to enter images with incorrect suffixes or no suffix. 
> One image had a suffix of JPG but turned out to be BMP. This caused 
> imageop to crash and burn. If we removed the suffix, it seems to work. 
> Two questions, is this default behaviour (ie, if no suffix is given 
> assume BMP) or is there some clever decision made about what file 
> format it is? If this is the case that there is some clever processing 
> occuring, how can I get this behaviour all the time (ie ignore the 
> suffix)? I have looked at the code and I am obviously missing 
> something because I do not see logic for this.
>
> Cheers.
>
If you don't want to rely on file suffixes a possible solution is to set 
a different file suffix as .img .

Best Regards,

Antonio Gallardo.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message