[racket] Generating svg-images rather than png-images from Scribble

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Tue Oct 15 13:07:35 EDT 2013

2013/10/15 Robby Findler <robby at eecs.northwestern.edu>:
> Oh, right! Silly me. I've fixed 2htdp/image images so they can be converted
> to svgs.
>
> I've also adjusted the scribble html renderer so that it treats the
> current-render-pict-as parameter as a suggestion on an ordering (png first
> or svg first) instead of insisting that all convertible things render as one
> or the other.
>
> But now that I write this message, I'm thinking that it probably makes more
> sense to have a parameter whose value is a list of suggested conversions
> (the importance being the order) and ...

This makes sense.

> ... that the parameters names should be based around the
> word 'convertible' instead of 'pict'.

I see what you mean. In my case I just need picts to become svgs.
Although bitmaps are in principle convertible to svgs, they should stay bitmaps.

> Does that seem okay to you?

Yes.

/Jens Axel

Posted on the users mailing list.