I have code to output jpegs via gdk-pixbuf. Its just not ready enough to hit 0.46
Would be happy to share what i have with you.

Cheers

John

On 12/29/07, Jayesh Salvi <jayeshsalvi@...155...> wrote:
Thanks guys. I would take a look at gdk-pixbuf as option.

It just struck me: is it possible to chain the extensions in inkscape? If that can be done then I can use Jpeg 'output' extension as 'input' for my extension. Don't know if that will make any sense in Inkscape's planned extension architecture, but worth a thought.

Thanks,
Jayesh


On Dec 28, 2007 1:39 AM, Nicu Buculei < nicu_gfx@...2342...> wrote:
Jayesh Salvi wrote:
>
> It is also a possibility to fork another inkscape instance as command
> line and use --export-png to convert to PNG (I think flickr/picasa will
> accept png). But the conversion result was very poor when I tried it.
> When the SVG image contained some simple black lines on a white
> background, the resultant PNG contained only black lines and no background.

flickr will automatically convert at upload time the PNG to JPEG with a
very poor result: you can't adjust the quality but, even worse, this
will destroy the alpha transparency (blur shadows, antialiased edges),
so this is not a viable option.
Picasaweb added support for PNG (it used to not accept PNG files) and it
seems to work correctly.

Probably you could fork another Inkscape, export as PNG, use ImageMagick
to convert to JPEG and upload that JPEG, but it seems more trouble (and
poorer) than using gdk-pixbuff.

--
nicu :: http://nicubunu.ro :: http://nicubunu.blogspot.com
Open Clip Art Library: http://www.openclipart.org
my cool Fedora wallpapers: http://fedora.nicubunu.ro/wallpapers/
my clipart collection: http://clipart.nicubunu.ro/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user