Re: [evolution-patches] Plugin for resizing inline attachments (images)



I'm fairly certain that there are methods for scaling GdkPixbufs
already. why not just use those?

Jeff

On Tue, 2005-06-14 at 11:39 +0530, Srinivasa Ragavan wrote:
> Hi,
> 
>  I have written a e-plugin to resize inline display of images to
> available width.
> 
> It basically converts the part to a pixbuf, resizes it and decodes to a
> jpeg (a pixbuf when tried saving to a buffer, has to be decoded to some
> format) and is converted to a part and passed to the default handler.
> This is the approach, i have followed. It still saves the original
> file. 
> 
> There is a alternate approach as well.
> 
> Every image is written with a <img src="xxxx" > tag. Get the image size
> from the part, and if it is more than the available width, then add a
> width="xxx" so that gtkhtml automatically resizes it for bigger images.
> 
> 
> Thanks
> Srini.
> 
> _______________________________________________
> evolution-patches mailing list
> evolution-patches lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution-patches
-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com  - www.novell.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]