<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andrii,<div class=""><br class=""></div><div class=""> I have added this to our requirements gathering for further rendering support.</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><blockquote type="cite" class=""><div class="">On 15 Jan 2016, at 10: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="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Dear William,<br class="">
    <br class="">
    Thank you for investigating the color inversion. We have checked the
    results from using the code you suggest and they look fine.<br class="">
    It would be very nice to have this switch implemented in the OMERO
    API.<br class="">
    <br class="">
    Best regards,<br class="">
    Andrii<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 14/01/2016 23:05, William Moore
      wrote:<br class="">
    </div>
    <blockquote cite="mid:FC8DD4D9-0EDA-40EE-830A-BBA9320B4B42@lifesci.dundee.ac.uk" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" 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 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 class="">
          <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><a class="moz-txt-link-abbreviated" href="mailto:andrii@ebi.ac.uk">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 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 class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
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 class="">
  </div>

_______________________________________________<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>