Specifying thumbnailers as a service

Adrien BUSTANY madcat at mymadcat.com
Fri Aug 29 04:54:15 PDT 2008

Bastien Nocera a écrit :
> On Fri, 2008-08-29 at 12:14 +0200, Adrien BUSTANY wrote:
>> Bastien Nocera a écrit : 
>>> On Fri, 2008-08-29 at 11:25 +0200, Philip Van Hoof wrote:
>>>> <arg type="i" name="size_x" direction="in" />
>>>>       <arg type="i" name="size_y" direction="in" />
>>> In the libgnomeui API, you only set one of those, and aspect ratio is
>>> preserved. The size passed is the maximum width and height.
>> Well, we can have the Qt approach here :
>> keep width and height, and add a third parameter which is
>> PreserveRatio (actually in Qt there are three possibilities : keep
>> ratio, don't keep ratio and extend, see
>> http://doc.trolltech.com/4.4/qpixmap.html#scaled ).
> Why would you want to do that
Well I don't know why I specially would like to do that, but it gives us 
flexibility without making the API more difficult to use (the ratio mode 
can be optional). Some people might want to have more control... This 
was just a good compromise between Philip's original idea, and the GNOME 
version. I don't have some real usecase behind that :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xdg/attachments/20080829/7e0c59b0/attachment.html 

More information about the xdg mailing list