GithubHelp home page GithubHelp logo

Comments (11)

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=1246505
Originator: YES

I confirm that it happens in both directions.

More, when displayed at real size (1:1), only garbage is displayed, even in the zone < 32767. All other zoom factors display the image up to 32767, then white image.

Thumbnail is correctly displayed, so it seems to be related to display widget, not to file reading.

Original comment by: fma38

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=2049043
Originator: NO

May be related to X maximum window size (which is 32767 pixels wide or tall).

From http://www.pygtk.org/pygtk2tutorial/sec-Layout.html:
"The Layout container is similar to the Fixed container except that it implements an infinite (where infinity is less than 2^32) scrolling area. The X window system has a limitation where windows can be at most 32767 pixels wide or tall. The Layout container gets around this limitation by doing some exotic stuff using window and bit gravities, so that you can have smooth scrolling even when you have many child widgets in your scrolling area."

Original comment by: zas_

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Perhaps a fix...

Original comment by: zas_

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=2049043
Originator: NO

Frederic, please try this patch.
With it, i can display a 38000 pixels wide jpeg image.
Unsure if it is a correct fix, but please test.
File Added: pixbufrenderer_parent_class.patch

Original comment by: zas_

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=1986130
Originator: NO

IMHO the most important limitation is inside gdk-pixbuf library. Max. pixbuf size that it can allocate is
widthheight3<INT_MAX, that is around 32768*21845, see source for gdk_pixbuf_new().

We can write a special image loader that reads image into multiple pixbufs. Pixbuf renderer can handle it (see source tiles) but it would need some adjustments in image.c and in other places, but that should be doable.

Original comment by: nadvornik

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=1246505
Originator: YES

The patch doesn't solve the problem.

Original comment by: fma38

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=2049043
Originator: NO

gdk_pixbuf_new() is using gsize type so the allocation limit is near 37800 x 37800 pixels.

BTW, in pixbuf-renderer.c, pixmap_calc_size() should return a gsize instead of int.

Original comment by: zas_

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

Logged In: YES
user_id=1986130
Originator: NO

eog has the same problem.

Original comment by: nadvornik

from geeqie.

mowgli avatar mowgli commented on May 17, 2024
  • labels: --> Image formats
  • milestone: --> no target version

Original comment by: nadvornik

from geeqie.

mowgli avatar mowgli commented on May 17, 2024

The bug is in gdk-pixbuf, there has been a ticket upstream for 6 years : https://bugzilla.gnome.org/show\_bug.cgi?id=163090
I dig a little bit into it and proposed a workaround in the comments.

Original comment by: cyril42e

from geeqie.

caclark avatar caclark commented on May 17, 2024

Probably fixed by #772

from geeqie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.