<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear Andrii,<div class=""><br class=""></div><div class=""> Apologies for the delay.</div><div class=""><br class=""></div><div class="">I have tried to work an example of what you’re asking for at</div><div class=""><a href="https://gist.github.com/will-moore/8c6cda301020d67c802a" class="">https://gist.github.com/will-moore/8c6cda301020d67c802a</a></div><div class=""><br class=""></div><div class="">This creates a subclass of the BlitzGateaway ImageWrapper to extend the renderImage() method,</div><div class="">adding an “invert” parameter and using PIL to invert the image.</div><div class=""><br class=""></div><div class="">You may want to experiment with different behaviour using PIL to invert the image, but at least</div><div class="">this example should give you a good start.</div><div class=""><br class=""></div><div class=""> Please let us know if this does what you want,</div><div class=""><br class=""></div><div class=""> Regards,</div><div class=""><br class=""></div><div class=""> Will.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Jan 2016, at 09:58, Andrii Iudin <<a href="mailto:andrii@ebi.ac.uk" class="">andrii@ebi.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Dear OMERO developers,<br class=""><br class="">We are interested in reversing the color scheme of images as sometimes users deposit to us images with a negative contrast. The inversion can be done client-side, however the browser support of the CSS implementation is lacking and the Javascript solution is not feasible due to CORS restrictions. The optimal way would be to do this server-side. Please could you tell if it would be possible for you to implement the reversion of colors in Webgateway views render_image and render_image_region? Perhaps as a switch that can be set in the call to server that would invert the colors of the resulting image?<br class=""><br class="">Many thanks and best regards,<br class="">Andrii<br class="">_______________________________________________<br class="">ome-devel mailing list<br class=""><a href="mailto:ome-devel@lists.openmicroscopy.org.uk" class="">ome-devel@lists.openmicroscopy.org.uk</a><br class="">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel<br class=""></div></blockquote></div><br class=""></div></body></html>