Re: Resize images

2014-09-17 Thread Miguel
I've done some test and modulo in cocoon 2.2 project works fine. I describe step by step: a) Include dependency into pom file of my project: dependency groupIdorg.apache.cocoon/groupId artifactIdcocoon-imageop-impl/artifactId version1.0.0-SNAPSHOT/version /dependency b)

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.

Re: Resize images

2014-09-15 Thread Peter Sparkes
Hi, Thank you all for your replies. As I believe it will be the easiest to implement, I am going to try imgscalr. However, As I am using cocoon 2.1, Is there a way of using http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/ in cocoon 2.1 Best wishes Peter On 12/09/2014 06:59,

Re: Resize images

2014-09-12 Thread Miguel
Hi Peter You can find examples to manage images in Cocoon: http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/ Best regards El 11/09/2014 16:22, Peter Sparkes escribió: Hi, I currently have a cocoon application which enables the site owner to upload images and then within

RE: Resize images

2014-09-11 Thread Edward David
Peter, There are numerous image resizer programs out there. Check out this Free Picture Resizer at http://download.cnet.com/Free-Picture-Resizer/3000-12511_4-10297789.html Thanks, ___ Edward David Information Technologies Services, Libraries and Cultural Resources, The

Re: Resize images

2014-09-11 Thread Javier Puerto
Hi Peter, If you can use ImageMagick, you can try with: http://im4java.sourceforge.net/ 2014-09-11 16:27 GMT+02:00 Edward David eda...@ucalgary.ca: Peter, There are numerous image resizer programs out there. Check out this Free Picture Resizer at

Re: Resize images

2014-09-11 Thread Sandor Szatmari
I use JAI to dynamically resize images for my site. There are lot of examples if you google 'JAI image resize'. I store higher res images and downscale them on the fly to the right size for the context they will be used in. I wrote a plain old servlet to do it, but I'm sure it could be done