* [9fans] resample(1) 1 and fancy graphics tools 0
@ 2009-10-16 14:41 erik quanstrom
2009-10-16 19:45 ` Steve Simon
0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2009-10-16 14:41 UTC (permalink / raw)
To: 9fans
the comment in resample's man page is really true.
it produces great output s-l-o-w-l-y.
i needed to convert some pic(1)tures to transparent gifs.
unfortunately gif(1) doesn't do that. so i took a snapshot
of the page window with
crop -i5 /mnt/wsys/$id/window | topng > $target
and fed the results to gimp. unfortunately, this failed
miserably. some of the lines were aliased by gs and gimp
got confused. i tried feeding an image 10x larger into gimp
and resizing, but the results were even worse! half the lines
were deleted.
resize to the rescue. i tried this and the results are much,
much better (available for pickup next wed :-)):
<$pdf gs -dNOPAUSE -dSAFER '-sDEVICE=plan9' \
'-sOutputFile=/fd/1' -dQUIET -r1000 \
'-dTextAlphaBits=4' '-dGraphicsAlphaBits=4' -|
resample -x10%|page
btw, is anyone working or thinking about working on gif? it
really does need to transparency right to handle stuff like
http://radar.weather.gov/ridge/radar.php?rid=ffc
i looked at it a while back for 5 minutes but wasn't quite
clear on the concept and had other things to do.
- erik
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] resample(1) 1 and fancy graphics tools 0
2009-10-16 14:41 [9fans] resample(1) 1 and fancy graphics tools 0 erik quanstrom
@ 2009-10-16 19:45 ` Steve Simon
0 siblings, 0 replies; 3+ messages in thread
From: Steve Simon @ 2009-10-16 19:45 UTC (permalink / raw)
To: 9fans
If anyone does fancy working on gif(1) it has a bug I have been meaning to look
at for ages.
The problem relates to reproducing optimised animated gif files.
Gif(1) assumes each image in an animation should be rendered on a
black background, however optimised animations, those which contain
only the interframe differences WRT the reference (first) frame do
not conform to this model.
An example makes things clear - appologies for the poor quality of
the joke.
http://www.quintile.net/doorstep/broken-animated-image.gif
-Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] resample(1) 1 and fancy graphics tools 0
[not found] <<a9c9f84432f4c8394cd6e07353c64239@quintile.net>
@ 2009-10-16 19:51 ` erik quanstrom
0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2009-10-16 19:51 UTC (permalink / raw)
To: 9fans
On Fri Oct 16 15:47:15 EDT 2009, steve@quintile.net wrote:
> An example makes things clear - appologies for the poor quality of
> the joke.
>
> http://www.quintile.net/doorstep/broken-animated-image.gif
that's essentially the same problem as with the page
i posted. except the images are presented as seperate
gifs rather than an animation.
- erik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-16 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-16 14:41 [9fans] resample(1) 1 and fancy graphics tools 0 erik quanstrom
2009-10-16 19:45 ` Steve Simon
[not found] <<a9c9f84432f4c8394cd6e07353c64239@quintile.net>
2009-10-16 19:51 ` erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).