<div dir="ltr">Hi Miguel,<div>This indeed is quite useful.<br></div><div>Thank you</div><div>Jean-Michel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 7, 2014 at 2:05 PM, Miguel Colom <span dir="ltr"><<a href="mailto:Miguel.Colom@cmla.ens-cachan.fr" target="_blank">Miguel.Colom@cmla.ens-cachan.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br>
as you may have noticed in the demos, sometimes there's a delay between the time you click on an image of the demo and the time the parameters page appears.<br>
<br>
This is caused by internal format conversions performed by the demo system to ensure that the binary program will receive the images in the format it needs and also to create versions of the images that can be displayed on the web with the proper sizes.<br>
<br>
However, most of the time these kind of conversions are not needed. For example, if the input image is PNG, it doesn't need to be converted again into PNG. Also, most of the these operations can be executed in parallel.<br>
<br>
So, I did these changes:<br>
- Parallelization of all conversions that can be performed at the same time.<br>
- Only convert input files is necessary. If not, just copy the input (after a security check, of course).<br>
<br>
Therefore, from now you should observe a drastic increase in the images loading speed.<br>
Of course, if conversions are needed (say, the input image is JPEG and the binary needs PNG), the process will slow down, but it will be parallelized anyway.<br>
In case of PNG images (the format that most of the demos and users prefer), the performance is now really improved.<br>
<br>
Best,<br>
Miguel<br>
<br>
PS: this change has affected files base_app.py and image.py in lib/<br>
<br>
<br>
--<br>
IPOL - Image Processing On Line - <a href="http://ipol.im/" target="_blank">http://ipol.im/</a><br>
<br>
contact <a href="mailto:edit@ipol.im" target="_blank">edit@ipol.im</a> - <a href="http://www.ipol.im/meta/contact/" target="_blank">http://www.ipol.im/meta/<u></u>contact/</a><br>
news+feeds twitter @IPOL_journal - <a href="http://www.ipol.im/meta/feeds/" target="_blank">http://www.ipol.im/meta/feeds/</a><br>
announces <a href="mailto:announce@list.ipol.im" target="_blank">announce@list.ipol.im</a> - <a href="http://tools.ipol.im/mm/announce/" target="_blank">http://tools.ipol.im/mm/<u></u>announce/</a><br>
discussions <a href="mailto:discuss@list.ipol.im" target="_blank">discuss@list.ipol.im</a> - <a href="http://tools.ipol.im/mm/discuss/" target="_blank">http://tools.ipol.im/mm/<u></u>discuss/</a><br>
<br>
</blockquote></div><br></div>