Tribune

Home » Liferay Portal » English » 2. Using Liferay » General

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Brian Scott Schupbach
Liferay and ImageMagick - create multiple image files
4 febbraio 2013 9.29
Risposta

Brian Scott Schupbach

Punteggio: Expert

Messaggi: 331

Data di Iscrizione: 23 ottobre 2008

Messaggi recenti

Does anyone know if it is possible to integrate Liferay and ImageMagick in such a way that someone could upload an image and have imagemagick automatically create multiple versions of the image in different sizes and then put them in Liferay's document and media folder?

Thanks,

Brian
David H Nebinger
RE: Liferay and ImageMagick - create multiple image files
4 febbraio 2013 10.14
Risposta

David H Nebinger

Punteggio: Liferay Legend

Messaggi: 6127

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

It's already supported, even w/o imagemagick.

Check out portal.properties to see how you can define the alternate sizes that Liferay should use when adding images.
Brian Scott Schupbach
RE: Liferay and ImageMagick - create multiple image files
4 febbraio 2013 12.34
Risposta

Brian Scott Schupbach

Punteggio: Expert

Messaggi: 331

Data di Iscrizione: 23 ottobre 2008

Messaggi recenti

Thanks. That would be great to configure that.

However, I just went through portal.properties and didn't find anything that seemed to enable or configure this option. I also read

http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/images

and couldn't find any information on it. Does anyone know what property controls this?
David H Nebinger
RE: Liferay and ImageMagick - create multiple image files
4 febbraio 2013 13.22
Risposta

David H Nebinger

Punteggio: Liferay Legend

Messaggi: 6127

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

Look for the ig.image.custom1.max.dimension comment that is in the portal.properties file. Basically it looks like it doesn't do width/height scaling, just scaling to a max dimension (of either height or width). It applies to all images loaded into the image gallery...
Brian Scott Schupbach
RE: Liferay and ImageMagick - create multiple image files
4 febbraio 2013 14.11
Risposta

Brian Scott Schupbach

Punteggio: Expert

Messaggi: 331

Data di Iscrizione: 23 ottobre 2008

Messaggi recenti

I think that will work great!

Here is some additional documentation I found for anyone who finds this in the future...

http://www.liferay.com/community/wiki/-/wiki/Main/Image+Gallery+Thumbnails