<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear William,<br>
<br>
Thank you for investigating the color inversion. We have checked the
results from using the code you suggest and they look fine.<br>
It would be very nice to have this switch implemented in the OMERO
API.<br>
<br>
Best regards,<br>
Andrii<br>
<br>
<div class="moz-cite-prefix">On 14/01/2016 23:05, William Moore
wrote:<br>
</div>
<blockquote
cite="mid:FC8DD4D9-0EDA-40EE-830A-BBA9320B4B42@lifesci.dundee.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
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 moz-do-not-send="true"
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
moz-do-not-send="true" href="mailto:andrii@ebi.ac.uk"
class=""><a class="moz-txt-link-abbreviated" href="mailto:andrii@ebi.ac.uk">andrii@ebi.ac.uk</a></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 moz-do-not-send="true"
href="mailto:ome-devel@lists.openmicroscopy.org.uk"
class="">ome-devel@lists.openmicroscopy.org.uk</a><br
class="">
<a class="moz-txt-link-freetext" href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ome-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ome-devel@lists.openmicroscopy.org.uk">ome-devel@lists.openmicroscopy.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>