Code: Select all
cmsimage.php/WxHxCROPxQUALITYxGS/HASH|ID.EXT will return GrayScale image.
All images can be GrayScale by default. Just set
$phpwcms['im_fix_colorspace'] = 'GRAY';
or
$phpwcms['colorspace'] = 'GRAY';
Code: Select all
cmsimage.php/WxHxCROPxQUALITYxGS/HASH|ID.EXT will return GrayScale image.
All images can be GrayScale by default. Just set
$phpwcms['im_fix_colorspace'] = 'GRAY';
or
$phpwcms['colorspace'] = 'GRAY';
Code: Select all
cmsimage.php/WxHxCROPxQUALITYxGS/HASH|ID.EXT
Code: Select all
<img
src="img/cmsimage.php/[PRIO]552[/PRIO][PRIO_ELSE]264[/PRIO_ELSE]x0x8/{THUMB_HASH}.{THUMB_EXT}"
data-grayscale="img/cmsimage.php/[PRIO]552[/PRIO][PRIO_ELSE]264[/PRIO_ELSE]x0x8x0xGS/{THUMB_HASH}.{THUMB_EXT}"
alt="[CAPTION]{CAPTION}[/CAPTION][CAPTION_ELSE]{IMAGE_NAME}[/CAPTION_ELSE]"
class="image-grayscale"
/>
veröffentlicht sehen will...Oliver Georgi wrote:In addition I use a jQuery that filters elements by $('img.image-grayscale') and wraps the <img> tag by <span>. The span gets the $(this).data('grayscale') as CSS background image. Little CSS and opacity: 0 and :hover and you are done.