Re: Resize images

2014-09-16 Thread Miguel
Hi Peter block imageop-samples exist for cocoon 2.1, and you can download in: http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_12/src/blocks/imageop El 15/09/2014 15:57, Peter Sparkes escribió: Hi, Thank you all for your replies. As I believe it will be the easiest

Re: Resize images

2014-09-16 Thread Peter Sparkes
Thank you Miguel Peter On 16/09/2014 07:08, Miguel wrote: Hi Peter block imageop-samples exist for cocoon 2.1, and you can download in: http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_12/src/blocks/imageop El 15/09/2014 15:57, Peter Sparkes escribió: Hi, Thank

Re: Resize images

2014-09-16 Thread Peter Sparkes
Hi Miguel, I have implemented imageop, however, the only samples that work are: * Display image with original size and colour * Tint image various colour I get Unable to transform src image for * Image scaling * Image resize Any ideas how to get scaling and resizing working Best wishes

Re: Resize images

2014-09-16 Thread Miguel
Have you checked dependencies? Have you tried to use block: cocoon-imageop-sample? Can you show error message when you use transformer? El 16/09/2014 13:14, Peter Sparkes escribió: Hi Miguel, I have implemented imageop, however, the only samples that work are: * Display image with original

Re: Resize images

2014-09-16 Thread Peter Sparkes
I am using the Samples block on cocoon 2.1.12 ...//samples/blocks/imageop/logo2.png/resize-50-50 gives the following error: java.awt.image.ImagingOpException: Unable to transform src image Cocoon stacktrace[hide] *Failed to process reader* context://samples/blocks/imageop/sitemap.xmap - 46:53

Re: Resize images

2014-09-16 Thread Miguel
Hi Peter It seems that there isn't access to image or similar error to read it. I advise you debug the block imageop to see what parameters's value arrive to class. This block has only three bugs, and all are fixed, so I think module must works.

Re: Resize images

2014-09-16 Thread Peter Sparkes
Hi Miguel, My java is not good enough debug the block imageop to see what parameters's value arrive to class However as * Display image with original size and colour * Tint image various colour are working I assume there is access to image.