Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG file not rendered when opened #913

Open
Omcsesz opened this issue Jul 26, 2021 · 13 comments
Open

SVG file not rendered when opened #913

Omcsesz opened this issue Jul 26, 2021 · 13 comments

Comments

@Omcsesz
Copy link

Omcsesz commented Jul 26, 2021

ISSUE TYPE

Bug Report

GEEQIE VERSION

Geeqie 1.6

OS / DISTRIBUTION

Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute

SUMMARY

I can not open the attached SVG file in Geeqie. The default image viewer in Ubuntu opens it without problems.
(link to file: https://drive.google.com/file/d/1mH02D4y8kyIgp39a67oLJGmBaifr2yZF/view?usp=sharing)

STEPS TO REPRODUCE

  1. Install Geeqie
  2. Open Geeqie
  3. Drag-and-drop the file on the UI
  4. Get an empty white rectangle
@caclark
Copy link
Collaborator

caclark commented Jul 26, 2021

Do you have librsvg2-common installed?

@Omcsesz
Copy link
Author

Omcsesz commented Jul 26, 2021

Do you have librsvg2-common installed?

Yes, it is installed.

@caclark
Copy link
Collaborator

caclark commented Jul 26, 2021

If librsvg2-common is installed, librsvg2-2 should also be installed - and the image should be displayed. That it does not is puzzling.

Perhaps you could try running a Geeqie AppImage - download links are on the geeqie.org site. The AppImage should include all necessary libraries. (I am not suggesting that as a solution, merely that it might help to determine where the problem is).

@caclark
Copy link
Collaborator

caclark commented Jul 26, 2021

Also from a terminal window execute find /usr -name gdk-pixbuf-query-loaders

Execute that file - it will list all the file types the pixbuf loader can handle - svg should be among them.

@Omcsesz
Copy link
Author

Omcsesz commented Jul 26, 2021

@caclark The file contains the following section:
` "/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so"

"svg" 6 "gdk-pixbuf" "Scalable Vector Graphics" "LGPL"

"image/svg+xml" "image/svg" "image/svg-xml" "image/vnd.adobe.svg+xml" "text/xml-svg" "image/svg+xml-compressed" ""

"svg" "svgz" "svg.gz" ""

" <svg" "* " 100

" <!DOCTYPE svg" "* " 100 `
Does this mean that SVG is among them?

@caclark
Copy link
Collaborator

caclark commented Jul 27, 2021

Is this the only .svg file that does not display?

Does the status line show that the file is loaded - i.e. shows (12988 x 1089) 261,217 bytes ?

If you change the default background colour (Edit/Preferences/Image/Appearance - Use custom border) to something other than black or white, and then switch between Fit image to window and Zoom to original size is there any change in the display?

@gusnan
Copy link
Contributor

gusnan commented Jul 27, 2021

I am guessing @Omcsesz is on wayland, and see the same behaviour on any image (Could you please test other images, and confirm?)

Ubuntu 21.04 doesn't have this patch: 89c5590

See #644 .

Ubuntu 21.04 has geeqie 1:1.6-6, while this patch is applied in the Debian package 1:1.6-8.

One solution: Use a linux distro that doesn't simply take packages at a arbitrary time from another distro without seeing what patches is required and needed. Or update to 1:1.6-8 (or -9 which is the latest).

@Omcsesz
Copy link
Author

Omcsesz commented Jul 27, 2021

Is this the only .svg file that does not display?

No, it is the same for jpg.

Does the status line show that the file is loaded - i.e. shows (12988 x 1089) 261,217 bytes ?

The status line does show that the file is loaded.

If you change the default background colour (Edit/Preferences/Image/Appearance - Use custom border) to something other than black or white, and then switch between Fit image to window and Zoom to original size is there any change in the display?

Yes, it changes the background colour, but the picture is still invisible.

@gusnan
Copy link
Contributor

gusnan commented Jul 27, 2021

In addition to what I wrote above - the bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/geeqie/+bug/1918278

@caclark
Copy link
Collaborator

caclark commented Jul 31, 2021

I have changed the background colour to purple, and set "Fit image to window".
The attached screenshot is the result I get.
Do you same the same effect or is the entire image pane plain white?
Screenshot_2021-07-31_09-34-39

@Omcsesz
Copy link
Author

Omcsesz commented Aug 4, 2021

I have changed the background colour to purple, and set "Fit image to window".
The attached screenshot is the result I get.
Do you same the same effect or is the entire image pane plain white?
Screenshot_2021-07-31_09-34-39

@caclark The entire image plain is white.

@caclark
Copy link
Collaborator

caclark commented Aug 8, 2021

Would you try this - go to
Edit/Preferences/Image and select Use GPU Acceleration
Then restart Geeqie

@Omcsesz
Copy link
Author

Omcsesz commented Aug 16, 2021

@caclark

Would you try this - go to
Edit/Preferences/Image and select Use GPU Acceleration
Then restart Geeqie

I did it, and now it works, thank you!
But I'm still puzzled, how can this be connected to my issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants