All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mgnl-files.templates.samples-media.paragraph-mediael.jsp Maven / Gradle / Ivy

Go to download

Magnolia SimpleMedia Module: a module for Magnolia CMS for easier management multimedia assets.

There is a newer version: 5.0.10
Show newest version

  
  

Original image

media:url(mediaNode)

100x100: resize image in order to contain required resolution (100x100) and crop outfitting simmetric bands. Resulting image has the required resolution.

media:urlres(mediaNode, '100x100')

L100x100: resize image in order to fit into required resolution. Resulting image should have one side smaller than required resolution.

media:urlres(mediaNode, 'l100x100')

o100x100: resize image in order to fit into required resolution and fills empty bands with background color (default = White). Resulting image has the required resolution.

media:urlres(mediaNode, 'o100x100')

With background color

media:urlres(mediaNode, 'o100x100;background=FF0000')

n100x100: resize image in order to contain the required resolution. Resulting image should have one side bigger than required resolution.

media:urlres(mediaNode, 'n100x100')

Passing parameters: resolution string supports optional parameters that may enable post processing.

Adding parameter bw will make the image in grayscale

media:urlres(mediaNode, 'n100x100;bw')




© 2015 - 2025 Weber Informatics LLC | Privacy Policy