<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 30 sept. 2022 à 07:20, Andreas Tille <<a href="mailto:tille@debian.org">tille@debian.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Fri, Sep 30, 2022 at 02:20:26AM +0200 schrieb olivier sallou:<br>
> Will try to have a look, but i have no perl knowledge and software is quite<br>
> old now...<br></blockquote><div><br></div><div>I have a patch. With this patch, tests are ok, but I have no way to know if it works as expected (don't know how to test it on real case)</div><div>Basically it removes gd2 format usage to use png, see patch below. But it could have impacts on real display.</div><div><br></div><div>Patch:</div><div><br></div><div>--- a/lib/Bio/Graphics/Browser2/CachedTrack.pm<br>+++ b/lib/Bio/Graphics/Browser2/CachedTrack.pm<br>@@ -151,7 +151,7 @@<br> sub put_data {<br> my $self = shift;<br> my ($gd,$map,$titles) = @_;<br>- $self->{data}{gd} = $gd->can('gd2') ? $gd->gd2 : $gd;<br>+ $self->{data}{gd} = $gd->png;<br> $self->{data}{map} = $map;<br> $self->{data}{titles} = $titles;<br> my $datafile = $self->datafile;<br>@@ -191,7 +191,7 @@<br> my $gd = (ref($data->{gd}) <br> && ref($data->{gd})=~/^GD/)<br> ? $data->{gd}<br>- : GD::Image->newFromGd2Data($data->{gd});<br>+ : GD::Image->newFromPngData($data->{gd});<br> return $gd;<br> }<br> <br>--- a/lib/Bio/Graphics/Browser2/Render/Slave.pm<br>+++ b/lib/Bio/Graphics/Browser2/Render/Slave.pm<br>@@ -488,7 +488,7 @@<br> titles => $titles,<br> width => $width,<br> height => $height,<br>- imagedata => eval{$imagedata->gd2}};<br>+ imagedata => eval{$imagedata->png}};<br> }<br> my $content = nfreeze \%results;<br> return $content;<br></div><div><br></div><div><br></div><div> Olivier</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Alternatively we might consider removal.<br>
<br>
Kind regards<br>
<br>
Andreas.<br>
<br>
-- <br>
<a href="http://fam-tille.de" rel="noreferrer" target="_blank">http://fam-tille.de</a><br>
</blockquote></div></div>