CE image module?

View: New views
8 Messages — Rating Filter:   Alert me  

CE image module?

by Will Scheidegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Dear Magnolians

Every little PHP CMS features good automatic image scaling. Magnolia  
CE however only has the <cmsu:scaledImage /> tag which only works for  
images stored in the website repository.

We've come up with some home brewed stuff to fill the gap because this  
is definitely a CE feature, but our solutions so far have all had  
their problems. Now before I start over and "reinvent the wheel" I  
just wanted to check with you if there is a decent image module out  
there that could be shared. From our experiences it would have to have  
the following features:

- DMS based
- Configurable max. image size
- Good quality downscaling
        - we never need upscaling
        - speed is less of an issue than quality
        - maybe configurable sharpening would be nice too
- Smart management of downscaled versions of an image
        - Reuse of already scaled versions if the size fits
        - Best if stored in a subnode of the node which contains the original  
image so that when the original image is being replaced also the  
different size versions are deleted

I guess if no such module is available I'll start to re-factor our  
code. But if I don't have to...

-will

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: CE image module?

by Danilo Ghirardelli-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> I guess if no such module is available I'll start to re-factor our code.
> But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite
similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: CE image module?

by Will Scheidegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Well, the screencast look promising, although... the scaling is not  
documented - only cropping. Are you familiar with the module? I found  
"automatic image scaling" on the features list. Can you tell me  
anything about that?

Regards,
Will

On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:

>
>> I guess if no such module is available I'll start to re-factor our  
>> code. But if I don't have to...
>
> I don't know if this fits exactly your requirements, but seems quite  
> similar:
> http://lab.openmindonline.it/lab/products/media.html
>
> Regards, Danilo.
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <user-list-unsubscribe@...>
> ----------------------------------------------------------------
>


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: CE image module?

by Manuel Molaschi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Will,

the module does what he said... it does automatic scaling with some options on formats.

1) You put an image (1600x1200) on media repository
2) you now can use this image in your paragraphs/templates by using either the el functions or tag media to specify the resolution you need and the resize/crop mode:
    - fit in: the image is scaled to fit in the resolution you specify;
    - crop centered: the image is scaled to fill the resolution you specify and image parts that outfits the required area are cropped (centered);
    - fill: the image is scaled to fill the resolution you specify. Outfitting image parts are not cutted;
3) Using the media tag you can just specify one target dimension (e.g. width) and the image will be resized to the required width keeping image size proportions
4) Using the media tag you can output html img tag with width and height in "ems" in order to scale accotrding to html body font-size

All resize/crop modes keep image proportions.

When an image is resized, you can specify some filters to be applied on resulting image like b&w and round corners.


Manuel

On Sun, Nov 8, 2009 at 5:06 PM, Will Scheidegger <willscheidegger@...> wrote:

Well, the screencast look promising, although... the scaling is not documented - only cropping. Are you familiar with the module? I found "automatic image scaling" on the features list. Can you tell me anything about that?

Regards,
Will


On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:


I guess if no such module is available I'll start to re-factor our code. But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



Re: CE image module?

by Will Scheidegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, after studying the doc some more I also figured this out. So I thought I should give it a try and installed the module. Apart from the fact that the doc does not describe how to add a media selector to the dialog (I got it working though) I still cannot select any images. There is no "select" link. Is that because the images are not activated? Thanks for the insight.

-will

On 09.11.2009, at 12:46, Manuel Molaschi wrote:

Hi Will,

the module does what he said... it does automatic scaling with some options on formats.

1) You put an image (1600x1200) on media repository
2) you now can use this image in your paragraphs/templates by using either the el functions or tag media to specify the resolution you need and the resize/crop mode:
    - fit in: the image is scaled to fit in the resolution you specify;
    - crop centered: the image is scaled to fill the resolution you specify and image parts that outfits the required area are cropped (centered);
    - fill: the image is scaled to fill the resolution you specify. Outfitting image parts are not cutted;
3) Using the media tag you can just specify one target dimension (e.g. width) and the image will be resized to the required width keeping image size proportions
4) Using the media tag you can output html img tag with width and height in "ems" in order to scale accotrding to html body font-size

All resize/crop modes keep image proportions.

When an image is resized, you can specify some filters to be applied on resulting image like b&w and round corners.


Manuel

On Sun, Nov 8, 2009 at 5:06 PM, Will Scheidegger <willscheidegger@...> wrote:

Well, the screencast look promising, although... the scaling is not documented - only cropping. Are you familiar with the module? I found "automatic image scaling" on the features list. Can you tell me anything about that?

Regards,
Will


On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:


I guess if no such module is available I'll start to re-factor our code. But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

Re: CE image module?

by Manuel Molaschi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, media nodes have to be published in order to be selectable... Or you can set magnolia.develop=true in your magnolia.properties file.

Manuel

On Mon, Nov 9, 2009 at 1:35 PM, Will Scheidegger <willscheidegger@...> wrote:
Yes, after studying the doc some more I also figured this out. So I thought I should give it a try and installed the module. Apart from the fact that the doc does not describe how to add a media selector to the dialog (I got it working though) I still cannot select any images. There is no "select" link. Is that because the images are not activated? Thanks for the insight.

-will

On 09.11.2009, at 12:46, Manuel Molaschi wrote:

Hi Will,

the module does what he said... it does automatic scaling with some options on formats.

1) You put an image (1600x1200) on media repository
2) you now can use this image in your paragraphs/templates by using either the el functions or tag media to specify the resolution you need and the resize/crop mode:
    - fit in: the image is scaled to fit in the resolution you specify;
    - crop centered: the image is scaled to fill the resolution you specify and image parts that outfits the required area are cropped (centered);
    - fill: the image is scaled to fill the resolution you specify. Outfitting image parts are not cutted;
3) Using the media tag you can just specify one target dimension (e.g. width) and the image will be resized to the required width keeping image size proportions
4) Using the media tag you can output html img tag with width and height in "ems" in order to scale accotrding to html body font-size

All resize/crop modes keep image proportions.

When an image is resized, you can specify some filters to be applied on resulting image like b&w and round corners.


Manuel

On Sun, Nov 8, 2009 at 5:06 PM, Will Scheidegger <willscheidegger@...> wrote:

Well, the screencast look promising, although... the scaling is not documented - only cropping. Are you familiar with the module? I found "automatic image scaling" on the features list. Can you tell me anything about that?

Regards,
Will


On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:


I guess if no such module is available I'll start to re-factor our code. But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------


Re: CE image module?

by Will Scheidegger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks! Now (with magnolia.develop=true) I get a "select" link... but I also do get a JavaScript security error when I click it (this is on Firefox 3.5 on Mac). Any ideas about this?

-will

On 09.11.2009, at 14:39, Manuel Molaschi wrote:

Yes, media nodes have to be published in order to be selectable... Or you can set magnolia.develop=true in your magnolia.properties file.

Manuel

On Mon, Nov 9, 2009 at 1:35 PM, Will Scheidegger <willscheidegger@...> wrote:
Yes, after studying the doc some more I also figured this out. So I thought I should give it a try and installed the module. Apart from the fact that the doc does not describe how to add a media selector to the dialog (I got it working though) I still cannot select any images. There is no "select" link. Is that because the images are not activated? Thanks for the insight.

-will

On 09.11.2009, at 12:46, Manuel Molaschi wrote:

Hi Will,

the module does what he said... it does automatic scaling with some options on formats.

1) You put an image (1600x1200) on media repository
2) you now can use this image in your paragraphs/templates by using either the el functions or tag media to specify the resolution you need and the resize/crop mode:
    - fit in: the image is scaled to fit in the resolution you specify;
    - crop centered: the image is scaled to fill the resolution you specify and image parts that outfits the required area are cropped (centered);
    - fill: the image is scaled to fill the resolution you specify. Outfitting image parts are not cutted;
3) Using the media tag you can just specify one target dimension (e.g. width) and the image will be resized to the required width keeping image size proportions
4) Using the media tag you can output html img tag with width and height in "ems" in order to scale accotrding to html body font-size

All resize/crop modes keep image proportions.

When an image is resized, you can specify some filters to be applied on resulting image like b&w and round corners.


Manuel

On Sun, Nov 8, 2009 at 5:06 PM, Will Scheidegger <willscheidegger@...> wrote:

Well, the screencast look promising, although... the scaling is not documented - only cropping. Are you familiar with the module? I found "automatic image scaling" on the features list. Can you tell me anything about that?

Regards,
Will


On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:


I guess if no such module is available I'll start to re-factor our code. But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

Re: CE image module?

by Manuel Molaschi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know :(
We use the 4.0-b10 version with ffox 3.x on ubuntu 8.x/9.x and Windows without problems...
Keep us updated on this thread!

If you find this problem with firefox 3.x happends also on other mac, open a jira at http://lab.openmindonline.it/jira

Thank you!

Manuel

On Mon, Nov 9, 2009 at 3:24 PM, Will Scheidegger <willscheidegger@...> wrote:
Thanks! Now (with magnolia.develop=true) I get a "select" link... but I also do get a JavaScript security error when I click it (this is on Firefox 3.5 on Mac). Any ideas about this?

-will

On 09.11.2009, at 14:39, Manuel Molaschi wrote:

Yes, media nodes have to be published in order to be selectable... Or you can set magnolia.develop=true in your magnolia.properties file.

Manuel

On Mon, Nov 9, 2009 at 1:35 PM, Will Scheidegger <willscheidegger@...> wrote:
Yes, after studying the doc some more I also figured this out. So I thought I should give it a try and installed the module. Apart from the fact that the doc does not describe how to add a media selector to the dialog (I got it working though) I still cannot select any images. There is no "select" link. Is that because the images are not activated? Thanks for the insight.

-will

On 09.11.2009, at 12:46, Manuel Molaschi wrote:

Hi Will,

the module does what he said... it does automatic scaling with some options on formats.

1) You put an image (1600x1200) on media repository
2) you now can use this image in your paragraphs/templates by using either the el functions or tag media to specify the resolution you need and the resize/crop mode:
    - fit in: the image is scaled to fit in the resolution you specify;
    - crop centered: the image is scaled to fill the resolution you specify and image parts that outfits the required area are cropped (centered);
    - fill: the image is scaled to fill the resolution you specify. Outfitting image parts are not cutted;
3) Using the media tag you can just specify one target dimension (e.g. width) and the image will be resized to the required width keeping image size proportions
4) Using the media tag you can output html img tag with width and height in "ems" in order to scale accotrding to html body font-size

All resize/crop modes keep image proportions.

When an image is resized, you can specify some filters to be applied on resulting image like b&w and round corners.


Manuel

On Sun, Nov 8, 2009 at 5:06 PM, Will Scheidegger <willscheidegger@...> wrote:

Well, the screencast look promising, although... the scaling is not documented - only cropping. Are you familiar with the module? I found "automatic image scaling" on the features list. Can you tell me anything about that?

Regards,
Will


On 07.11.2009, at 20:33, Danilo Ghirardelli wrote:


I guess if no such module is available I'll start to re-factor our code. But if I don't have to...

I don't know if this fits exactly your requirements, but seems quite similar:
http://lab.openmindonline.it/lab/products/media.html

Regards, Danilo.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------