Launchpad has imported 8 comments from the remote bug at
https://bugs.gentoo.org/show_bug.cgi?id=438786.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-10-18T11:27:55+00:00 Samuel-bauer wrote:

when loading images with gdk_pixbuf_new_from_file_at_size, xpm files
won't be handled correctly (they aren't resized).

This snippet of code:
#include <gdk/gdk.h>
#include <stdio.h>
#define SIZE 16

int main(int argc, char *argv[]) {
        GdkPixbuf *pixbuf;
        GError *err = NULL;
        char *file;

        if(argc > 1)
                file = argv[1];

        g_type_init();
        pixbuf = gdk_pixbuf_new_from_file_at_size ((gchar*)file, SIZE, SIZE, 
&err);
        if(err != NULL)
                printf("error\n");
        if(gdk_pixbuf_get_width(pixbuf) != SIZE || 
gdk_pixbuf_get_height(pixbuf) != SIZE)
                printf("%s %d %d\n", file, gdk_pixbuf_get_width(pixbuf), 
gdk_pixbuf_get_height(pixbuf));
        return(0);
}
doesn't produce any output when reverting to gdk-pixbuf-2.24.0-r1, when it's 
noisy with last stable gdk-pixbuf (no error though image not resized).

I don't know if this wouldn't better be reported upstream.

Reproducible: Always


Expected Results:  
xpm image should be resized when loaded so.

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/5

------------------------------------------------------------------------
On 2012-10-18T17:42:31+00:00 Galtgendo wrote:

While your use of gdk_pixbuf_new_from_file_at_size is according to docs
not quite correct, it indeed seems to be an upstream bug.

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/6

------------------------------------------------------------------------
On 2012-10-19T01:52:51+00:00 Samuel-bauer wrote:

In reply to comment #1

I should be specific on the point that I did test on square images, else
whatever  the output will be noisy cause aspect ratio is preseved. But
maybe you meant about something else (this snippet of code has just been
quickly copied from another project for test purposes)

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/7

------------------------------------------------------------------------
On 2012-10-19T16:26:38+00:00 Galtgendo wrote:

@comment 2:
I've mostly meant this fragment: "Note that the returned pixbuf may be smaller 
than width x height, if the aspect ratio requires it."

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/9

------------------------------------------------------------------------
On 2012-10-20T02:01:53+00:00 Samuel-bauer wrote:

In reply to comment #3

Ok, output would be noisy every case when aspect ratio of the image
isn't 1:1 any case, but still any xpm image aren't resized through this
call.



Maybe somebody would fill a bug on the gnome bugtracker ?

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/12

------------------------------------------------------------------------
On 2012-10-20T08:56:15+00:00 Alexandre Rostovtsev wrote:

(In reply to comment #4)
> Maybe somebody would fill a bug on the gnome bugtracker ?

https://bugzilla.gnome.org/show_bug.cgi?id=686514

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/13

------------------------------------------------------------------------
On 2012-10-20T10:17:59+00:00 Samuel-bauer wrote:

In reply to comment #5

Thank you for filling the bug supplying more accurate tests on the
pixbuf size values, and for the responsiveness.


Would add that xpm image loaded through gtk_image_new_from_icon_name are
correctly resized, it may could be helpful.

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/15

------------------------------------------------------------------------
On 2013-05-26T18:41:49+00:00 Samuel-bauer wrote:

The bug has been confirmed upstream, so I suggest to add an epatch in
the ebuild targetting the following patch.

https://bug686514.bugzilla-
attachments.gnome.org/attachment.cgi?id=244569

I used to check if it works with through epatch_user, compile went
through nicely, and gdk_pixbuf_new_from_file_at_size handles xpm file
correctly.

Reply at: https://bugs.launchpad.net/ubuntu/+source/gdk-
pixbuf/+bug/1061037/comments/30


** Changed in: gdk-pixbuf (Gentoo Linux)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1061037

Title:
  Using .xpm icons on desktop may draw huge icon

To manage notifications about this bug go to:
https://bugs.launchpad.net/gdk-pixbuf/+bug/1061037/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to