Comments (15)
BTW, a funny comparison:
Qt5 supports "3fr", "ani", "arq", "arw", "avif", "avifs", "bay", "bmp", "bmq", "bw", "cap", "cine", "cr2", "cr3", "crw", "cs1", "cur", "dc2", "dcr", "dcs", "dng", "drf", "dxo", "eip", "eps", "epsf", "epsi", "erf", "exr", "fff", "gif", "hdr", "heic", "heif", "icns", "ico", "iiq", "jp2", "jpeg", "jpg", "jxl", "k25", "kc2", "kdc", "kra", "mdc", "mef", "mfw", "mng", "mos", "mrw", "nef", "nrw", "obm", "ora", "orf", "ori", "pbm", "pcx", "pdd", "pdf", "pef", "pgm", "pic", "png", "ppm", "psb", "psd", "psdt", "ptx", "pxn", "qtk", "r3d", "raf", "ras", "raw", "rdc", "rgb", "rgba", "rw2", "rwl", "rwz", "sgi", "sr2", "srf", "srw", "sti", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "x3f", "xbm", "xcf", "xpm".
While, here, Qt6 supports "bmp", "cur", "gif", "icns", "ico", "jp2", "jpeg", "jpg", "mng", "pbm", "pdf", "pgm", "png", "ppm", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm".
from lximage-qt.
OK, will add a note to README.
BTW, I logged into LXQt+kwin_x11 and opened the image. This time, it's a black rectangle. Why it's transparent under Wayland and black under X11+compositing, I don't know.
KDE's gwenview has exactly the same behavior. I added the info to your report (https://bugs.kde.org/show_bug.cgi?id=463951).
from lximage-qt.
"pcx" is among the formats supported by Qt5, on which lximage-qt is based currently.
But you're right: (1) Qt5 can't handle it (correctly), and (2) Qt6 doesn't support it. It will be removed when lximage-qt is ported to Qt6.
from lximage-qt.
"pcx" is among the formats supported by Qt5
Ok, where is that documented ? A quick look at https://doc.qt.io/qt-5/qimagereader.html#supportedImageFormats doesn't show it...
[EDIT] - ah, could it be you have KDE kimageformats installed ? looks like a Qt plugin for extra formats
I think ::supportedImageFormats()
doesn't return PCX, at least on my system, because File->Open dialog doesn't even list PCX.
from lximage-qt.
Ok, where is that documented ?
Qt didn't give a list in its doc the last time I checked. Just see QImageReader::supportedImageFormats()
.
Anyway, PCX (and many other formats) will be removed soon.
EDIT:
ah, could it be you have KDE kimageformats installed
Yes, I have it here. If it's a Qt plugin, it explains the difference between Qt5 and Qt6; then Qt6 might give the same list when kimageformats is ported to Qt6.
from lximage-qt.
Yes, I have it here. If it's a Qt plugin,
So that would be the explanation : https://api.kde.org/frameworks/kimageformats/html/index.html
- I will test that -> it's showing up as a black rectangle here
- , and (possibly) submit an upstream bug if my PCX file can't be loaded. -> https://bugs.kde.org/show_bug.cgi?id=463951
- I will also work on my distro side to add kimagereader as an optional dependency. -> https://bugs.archlinux.org/task/77027
Thanks for looking at this.
[edit - FYI, the attached PCX file opens fine in gimp which has its own image parser.]
from lximage-qt.
So that would be the explanation : https://api.kde.org/frameworks/kimageformats/html/index.html
You're right. Thanks for finding it!
I'm under LXQt+Wayfire now. Your attached PCX image is shown as a completely transparent rectangle by both lxmage-qt and another Qt-based viewer of mine. Will test it under X11 later.
from lximage-qt.
I would still suggest adding a note about kimagereader as an optional dependency somewhere in the README ?
from lximage-qt.
Let's reopen this. My question is more general: Shouldn't we include only those formats in the desktop file that Qt supports without any plugin?
from lximage-qt.
Shouldn't we include only those formats in the desktop file that Qt supports without any plugin?
You will have guessed that my quick answer would be "yes", because it's a safe default, and I'm not sure if it's realistic to
- modify .desktop file at the distro end to add extra entries depending on installed plugins
- modify .desktop.in file here with some equivalent cmake magic to detect a few common plugins , or to call
supportedImageFormats
? seems like a lot of complexity
from lximage-qt.
You will have guessed that my quick answer would be "yes"...
And I agree with you. But some users might kill us ;)
What about keeping the current formats and adding a note about kimageformats
?
from lximage-qt.
And I agree with you. But some users might kill us ;)
Any non-trivial change always has a risk of upsetting a certain group of users, that's true. I'm not well placed to judge.
What about keeping the current formats and adding a note about
kimageformats
?
That would be an improvement, yes.
from lximage-qt.
Just tried to open the image here: it opens fine with PhotoQt imageviewer (appimage) which apparently is the default for this type on my installation.
from lximage-qt.
It can be opened by GIMP too. The problem was that kimageformats
should enable all Qt image viewers to open it, but it didn't.
from lximage-qt.
Oh, we forgot about qt5-imageformats
. Added it to #593 too.
from lximage-qt.
Related Issues (20)
- erase in the menu "View" the checkbox next to "Full Screen" HOT 1
- dark system-theme is not respected HOT 1
- Use of the spacebar key to pause/resume a slideshow HOT 3
- Top of image gets corrupted when toolbar extension popup slides back HOT 3
- Add Finnish language to Weblate [Feature request] HOT 2
- [Feature request] `Open with` does not auto-save or suggest to save HOT 1
- Support changing implicit sort order HOT 2
- Window size is not remembered when pressing F11 one or two times HOT 6
- [Feature request] Switch to toggle antialiasing filter HOT 1
- [Feature request] Add line wrap support to SVG HOT 2
- Small app icon HOT 7
- [Feature request] Option to disable partial rendering HOT 4
- [Feature request] Crop + Compress + save in original quality HOT 1
- Opening an image opens another image in the folder instead of the double clicked image HOT 1
- Confusing and contradictory licensing information HOT 1
- [Feature request] Support heif format HOT 10
- Checkbox for annotations toolbar resets always to non checked HOT 5
- TGA support HOT 1
- Wrong mimetype for PGM (image/x-portable-graymap) files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lximage-qt.