<div dir="ltr"><div>Hi all,</div><div><br></div><div>How does the File List "know" that an image file is a Form, and therefore to send the file services message(s) to the Form class? It seems that this isn't present in ImageReadWriter directly (or any of its subclasses). If we can "intercept" that part of the process for GIFs, we can introduce a custom "open" command that will display and AnimatedImageMorph if there are multiple frames, or a regular ImageMorph/SketchMorph if there is only a single frame. I'm just having a bit of trouble tracking down the "flow" from the time of clicking an image file in the file list...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 5, 2022 at 2:08 PM Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div>


<div dir="ltr">
<div id="gmail-m_4197047913531812546x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p>No objections (even though always offering text mode does not harm).</p>
<p>It's just about the implementation complexity - as of today, file services do not have any "override" semantics. :-)</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4197047913531812546x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>> im Auftrag von tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>><br>
<b>Gesendet:</b> Donnerstag, 5. Mai 2022 19:49:57<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Trunk: Graphics-mt.515.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div><br>
<br>
> On 2022-05-05, at 5:55 AM, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" target="_blank">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br>
> <br>
> Indeed, there are two "open" services for GIF files. See Form class>>#fileReaderServicesForFile:suffix: and AnimatedImageMorph class>>#fileReaderServicesForFile:suffix:.<br>
> <br>
> <pastedImage.png><br>
> <pastedImage.png><br>
<br>
There's way too many options in that list. And indeed two copies of 'use graphic as background' to add wrongness.<br>
<br>
I suggest at a maximum<br>
<br>
open as morph<br>
add to ImageImports (does anybody actually use that?)<br>
open as background<br>
<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
Strange OpCodes: SDR: Shift Disk Right<br>
<br>
<br>
<br>
</div>
</span></font>
</div>

<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Eric</div></div></div>