Once created temp images can be grayscaled too via sending it to cmsimage.php. cmsimage.php/convert-gs/thumbnail.pic will return GrayScale image when it exists.
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';
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.
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.
veröffentlicht sehen will...
(und welcher Teil des JS genau die Funktion bereitstellt)