From: Gonzalo Odiard
generates a preview image with a fixed size and proportions.
if the original image is bigger scale down and center the image, if is smaller
center the image
the supported format files are checked with pixbuf_get_formats
---
downloadmanager.py | 45
ignore this patch.
I am doing anything wrong with git
Gonzalo
On Fri, Sep 24, 2010 at 10:44 AM, wrote:
> From: Gonzalo Odiard
>
> generates a preview image with a fixed size and proportions.
> if the original image is bigger scale down and center the image, if is
> smaller center the image
> t
From: Gonzalo Odiard
generates a preview image with a fixed size and proportions.
if the original image is bigger scale down and center the image, if is smaller
center the image
the supported format files are checked with pixbuf_get_formats
this patch adressed comments from silbe about segregat
> > +if (width > preview_width) or (height > preview_height):
> > +scale_x = float(width) / preview_width
> > +scale_y = float(height) / preview_height
> > +scale = max(scale_x, scale_y)
> > +
> > +pixbuf = pixbuf.scale_simple(float(width) / s
Excerpts from godiard's message of Thu Sep 23 15:42:15 +0200 2010:
> this patch adressed comments from silbe about segregate the check of a image
> mime type and use of sugar.style constant colors
> now opens the image in the original size because we don't want scale up small
> images
> also i d
On Wed, Sep 22, 2010 at 17:44, wrote:
> From: Gonzalo Odiard
>
> this patch adressed comments from silbe about segregate the check of a image
> mime type and use of sugar.style constant colors
> now opens the image in the original size because we don't want scale up small
> images
Just two sm
From: Gonzalo Odiard
this patch adressed comments from silbe about segregate the check of a image
mime type and use of sugar.style constant colors
now opens the image in the original size because we don't want scale up small
images
also i did changes sugested by simon
---
downloadmanager.py |
On 09/22/2010 05:44 PM, godi...@sugarlabs.org wrote:
> From: Gonzalo Odiard
>
> this patch adressed comments from silbe about segregate the check of a image
> mime type and use of sugar.style constant colors
> now opens the image in the original size because we don't want scale up small
> images
From: Gonzalo Odiard
this patch adressed comments from silbe about segregate the check of a image
mime type and use of sugar.style constant colors
now opens the image in the original size because we don't want scale up small
images
---
downloadmanager.py | 46
9 matches
Mail list logo