That's not only a matter of mime-type. It also means signal
transcoding. You could have a look at ImageMagick for that.
??Andre, Sorry I think my post is a bit confusing. Let me make it more
clear.
Actually we are working on the implementation of JMagick for reading
images in Cocoon. We also have posted a patch for that (bug link
https://issues.apache.org/jira/browse/COCOON-2269)
But the problem is that when the gif stream is generated by our modified
image reader, somewhere in the code Cocoon automatically converts its
mime type to JPEG and again returns a JPEG image irrespective of the
required mime-type.
We're not sure where cocoon sets the mime type.
Please suggest
André Davignon wrote:
That's not only a matter of mime-type. It also means signal
transcoding. You could have a look at ImageMagick for that.
André
As far as I am aware - the cocoon image reader does not transform
anything other than jpeg images.
Yes sir, but we wanted to search that block of code which actually
sets mime-type of the response to JPEG.
Please suggest.
Vik Tara wrote:
On 21/10/09 13:18, Anish wrote:
Hi All
I want to use ImageReader to read jpg images (from file) and then
to serve as gif (or any other format like png, tiff etc). I'm
unable to find solution for that.
Please suggest and let me know how I can modify/convert mime-type
for the response.
As far as I am aware - the cocoon image reader does not transform
anything other than jpeg images.
See bugs/caveats in the documentation:
http://cocoon.apache.org/2.1/userdocs/core/image-reader.html
Regards
Vik
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Anish Sneh
Software Engineer
Techblue Softwares Pvt. Ltd.
www.technologyblueprint.co.uk