Re: Resize images

2014-09-16 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:


  org.apache.cocoon
  cocoon-imageop-impl
  1.0.0-SNAPSHOT


b) Include test map:match into sitemap.xmap:


src="themer/themes/common/images/{1}">

  
  

  

  
src="themer/themes/common/images/{1}">

  
  

  

"themer/themes/common/images/" is the route to my images's folder

c) start my project and I test:

* http://localhost:8080/prueba/audio.gif/scale-2.5-jpg
* http://localhost:8080/prueba/audio.gif/resize-100-50

All works fine.


El 16/09/2014 22:27, Peter Sparkes escribió:

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.

http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/ also 
gives errors on resize (scalling)


Peter



On 16/09/2014 13:52, Miguel wrote:

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.

https://issues.apache.org/jira/browse/COCOON/component/12311751/?selectedTab=com.atlassian.jira.jira-projects-plugin:component-summary-panel



El 16/09/2014 14:03, Peter Sparkes escribió:

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 	/type="image-op-resize">/

context://samples/blocks/sitemap.xmap - 67:68   //
context://samples/sitemap.xmap - 198:66 //
context://sitemap.xmap - 1086:92//


Java stacktrace[hide]

java.awt.image.ImagingOpException: Unable to transform src image
at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:357)
at 
org.apache.cocoon.reading.imageop.ResizeOperation.apply(ResizeOperation.java:96)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.applyEffectsStack(ImageOpReader.java:193)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.processStream(ImageOpReader.java:123)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:332)



On 16/09/2014 12:36, Miguel wrote:

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 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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto <mailto:jpue...@gmail.com>> wrote:



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 <mailto:eda...@ucalgary.ca>>:


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 University of Calgary
 

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.

http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/ also gives 
errors on resize (scalling)

Peter



On 16/09/2014 13:52, Miguel wrote:

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.
https://issues.apache.org/jira/browse/COCOON/component/12311751/?selectedTab=com.atlassian.jira.jira-projects-plugin:component-summary-panel



El 16/09/2014 14:03, Peter Sparkes escribió:

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   //
context://samples/blocks/sitemap.xmap - 67:68   //
context://samples/sitemap.xmap - 198:66 //
context://sitemap.xmap - 1086:92//


Java stacktrace[hide]

java.awt.image.ImagingOpException: Unable to transform src image
at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:357)
at 
org.apache.cocoon.reading.imageop.ResizeOperation.apply(ResizeOperation.java:96)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.applyEffectsStack(ImageOpReader.java:193)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.processStream(ImageOpReader.java:123)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:332)



On 16/09/2014 12:36, Miguel wrote:

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 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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto mailto:jpue...@gmail.com>> wrote:


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 mailto:eda...@ucalgary.ca>>:

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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk <mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to 
upload images
and then  within the upload javascript uses java to move the images to the 
required
directory.

Most of the uploaded images are  large and therefore they are  slow in 
displaying in a
web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

--

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.

https://issues.apache.org/jira/browse/COCOON/component/12311751/?selectedTab=com.atlassian.jira.jira-projects-plugin:component-summary-panel



El 16/09/2014 14:03, Peter Sparkes escribió:

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 	/type="image-op-resize">/

context://samples/blocks/sitemap.xmap - 67:68   //
context://samples/sitemap.xmap - 198:66 //
context://sitemap.xmap - 1086:92//


Java stacktrace[hide]

java.awt.image.ImagingOpException: Unable to transform src image
at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:357)
at 
org.apache.cocoon.reading.imageop.ResizeOperation.apply(ResizeOperation.java:96)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.applyEffectsStack(ImageOpReader.java:193)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.processStream(ImageOpReader.java:123)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:332)



On 16/09/2014 12:36, Miguel wrote:

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 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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto <mailto:jpue...@gmail.com>> wrote:



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 <mailto:eda...@ucalgary.ca>>:


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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk
<mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org
    <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the
site owner to upload images and then  within the upload
javascript uses java to move the images to the required
directory.

Most of the uploaded images are  large and therefore they
are  slow in displaying in a web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail:
users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>








-
To

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   //
context://samples/blocks/sitemap.xmap - 67:68   //
context://samples/sitemap.xmap - 198:66 //
context://sitemap.xmap - 1086:92//


Java stacktrace[hide]

java.awt.image.ImagingOpException: Unable to transform src image
at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:357)
at 
org.apache.cocoon.reading.imageop.ResizeOperation.apply(ResizeOperation.java:96)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.applyEffectsStack(ImageOpReader.java:193)
at 
org.apache.cocoon.reading.imageop.ImageOpReader.processStream(ImageOpReader.java:123)
at 
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:332)




On 16/09/2014 12:36, Miguel wrote:

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 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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto mailto:jpue...@gmail.com>> wrote:


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 mailto:eda...@ucalgary.ca>>:

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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk <mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to 
upload images and
then  within the upload javascript uses java to move the images to the 
required directory.

Most of the uploaded images are  large and therefore they are  slow in 
displaying in a
web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>








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








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




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 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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto <mailto:jpue...@gmail.com>> wrote:



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 <mailto:eda...@ucalgary.ca>>:


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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk
<mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org>
>> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site
owner to upload images and then  within the upload javascript
uses java to move the images to the required directory.

Most of the uploaded images are  large and therefore they
are  slow in displaying in a web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>








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






<>
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

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

Peter


On 16/09/2014 07:34, Peter Sparkes wrote:

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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto mailto:jpue...@gmail.com>> wrote:


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 mailto:eda...@ucalgary.ca>>:

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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk <mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to 
upload images and
then  within the upload javascript uses java to move the images to the 
required directory.

Most of the uploaded images are  large and therefore they are  slow in 
displaying in a web
page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>








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






Re: Resize images

2014-09-15 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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto mailto:jpue...@gmail.com>> wrote:


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 mailto:eda...@ucalgary.ca>>:

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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk <mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to 
upload images and
then  within the upload javascript uses java to move the images to the 
required directory.

Most of the uploaded images are  large and therefore they are  slow in 
displaying in a web
page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>








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




Re: Resize images

2014-09-15 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 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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto <mailto:jpue...@gmail.com>> wrote:



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 <mailto:eda...@ucalgary.ca>>:


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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk
<mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >>
Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site
owner to upload images and then within the upload javascript
uses java to move the images to the required directory.

Most of the uploaded images are  large and therefore they are 
slow in displaying in a web page.


I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>






<>
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

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, Miguel wrote:

Hi Peter r

You can find examples to manage images in Cocoon: 
http://cocoon.zones.apache.org/cocoon22/cocoon-imageop-sample/


Best regards


On 11/09/2014 16:07, Sandor Szatmari wrote:
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 
in cocoon too.


Sandor

On Sep 11, 2014, at 10:38, Javier Puerto mailto:jpue...@gmail.com>> wrote:


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 mailto:eda...@ucalgary.ca>>:

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 University of Calgary
Phone: (403) 220-3383 
Fax: (403) 282-1218 

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk <mailto:pe...@didm.co.uk>]
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org <mailto:users@cocoon.apache.org> >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to upload images and then 
within the upload javascript uses java to move the images to the required directory.


Most of the uploaded images are  large and therefore they are  slow in 
displaying in a web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
<mailto:users-unsubscr...@cocoon.apache.org>
For additional commands, e-mail: users-h...@cocoon.apache.org
<mailto:users-h...@cocoon.apache.org>






Re: Resize images

2014-09-11 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 the upload javascript uses java to move 
the images to the required directory.


Most of the uploaded images are  large and therefore they are slow in 
displaying in a web page.


I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

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




<>
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

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 in cocoon too.

Sandor

> On Sep 11, 2014, at 10:38, Javier Puerto  wrote:
> 
> 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 :
>> 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 University of Calgary
>> Phone: (403) 220-3383
>> Fax: (403) 282-1218
>> 
>> -Original Message-
>> From: Peter Sparkes [mailto:pe...@didm.co.uk]
>> Sent: September-11-14 8:23 AM
>> To: users@cocoon.apache.org >> Cocoon users
>> Subject: Resize images
>> 
>> Hi,
>> 
>> I currently have a cocoon application which enables the site owner to upload 
>> images and then  within the upload javascript uses java to move the images 
>> to the required directory.
>> 
>> Most of the uploaded images are  large and therefore they are  slow in 
>> displaying in a web page.
>> 
>> I, therefore, wish to resize them before saving them.
>> 
>> I am not sure how to do it.
>> 
>> Please, can anyone help
>> 
>> Thanks
>> 
>> Peter
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
>> For additional commands, e-mail: users-h...@cocoon.apache.org
> 


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 :

> 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 University of Calgary
> Phone: (403) 220-3383
> Fax: (403) 282-1218
>
> -Original Message-
> From: Peter Sparkes [mailto:pe...@didm.co.uk]
> Sent: September-11-14 8:23 AM
> To: users@cocoon.apache.org >> Cocoon users
> Subject: Resize images
>
> Hi,
>
> I currently have a cocoon application which enables the site owner to
> upload images and then  within the upload javascript uses java to move the
> images to the required directory.
>
> Most of the uploaded images are  large and therefore they are  slow in
> displaying in a web page.
>
> I, therefore, wish to resize them before saving them.
>
> I am not sure how to do it.
>
> Please, can anyone help
>
> Thanks
>
> Peter
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


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 University of Calgary
Phone: (403) 220-3383
Fax: (403) 282-1218

-Original Message-
From: Peter Sparkes [mailto:pe...@didm.co.uk] 
Sent: September-11-14 8:23 AM
To: users@cocoon.apache.org >> Cocoon users
Subject: Resize images

Hi,

I currently have a cocoon application which enables the site owner to upload 
images and then  within the upload javascript uses java to move the images to 
the required directory.

Most of the uploaded images are  large and therefore they are  slow in 
displaying in a web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

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



Resize images

2014-09-11 Thread Peter Sparkes

Hi,

I currently have a cocoon application which enables the site owner to upload images and then  within 
the upload javascript uses java to move the images to the required directory.


Most of the uploaded images are  large and therefore they are  slow in 
displaying in a web page.

I, therefore, wish to resize them before saving them.

I am not sure how to do it.

Please, can anyone help

Thanks

Peter

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