-
-
Notifications
You must be signed in to change notification settings - Fork 23
Add rule that .DirIcon should be png #27
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
Comments
Also, placeholders like |
Why does it have to be PNG? Is that like, most compatible? What's the use case? |
Actually, we can just mention that the old ROX filer spec also requires PNG there. We can add some explanatory stuff (like the answers to the questions I wrote in my last comment). |
@azubieta says all thumbnails need to be PNGs, and we want to have something in the AppImage that can be used as a thumbnail without performance-costly conversions/calculations at integration time |
See https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html#CREATION |
@azubieta mind to send a PR? |
This can only be done in |
@azubieta well you can write it into the spec nevertheless. |
The |
Makes sense. Didn't get fully clear from the previous comments. |
I don't get it. The point of the placeholder is that one can do a search and replace of strings without the need for an image library (e.g., using C in |
We have to extract the icon anyway, so we can just read it into memory normally and edit it on demand. No need to add such a rule to the specification, which would also break the backwards compatibility. We have too do it anyway for all old AppImages, and this "optimization" just creates many issues code wise. The gain is very little, actually, you could claim that this would add bloat to the PNG file. |
So, how are the |
Anything can be done. But, no need for it, is there? We just do it with libappimage when registering AppImages. |
Isn't that what we said is a) requiring integration-time dependencies that we want to get rid of, and b) time-consuming? (some measurements would be good) |
Any updates on this? Waiting for this to be implemented to adjust checks in appimagelint. |
Which part of this ticket do you mean with "this"? |
Is there an official rule in the spec that says "must be PNG, anything else is invalid"? |
So the logic is that in order to be able to use |
@azubieta your call. |
Yes, using the maximum icon size is the preferred way. Reducing the size of an image doesn't produce ugly results and it's something that desktop environments can easily do. Additionally we can save any image manipulation on libappiamge. The image metadata should (still have to look for a header only lib to do that) be edited with a minimum effort. |
@probonopd please update the spec if you reference this issue in other issues. This is not even a rule yet, so it shouldn't be carried out as such yet. |
Closed in fc746b5 |
Now, "should" it be a PNG, or "must" it be a PNG? That's a big difference for appimagelint. |
For now it should, otherwise you'd get a lot of fails on existing AppImages. |
Well it's a spec draft, it's not like we'd make releases. For the next type we have to professionalize this a bit, I'd like to have versions myself, really useful for governance. The next runtime should also be released under the terms of the zlib license, current license (MIT) has a few drawbacks. |
Drawbacks: namely? |
Add check that
.DirIcon
should be pngReference:
AppImageCommunity/libappimage#104 (comment)
The text was updated successfully, but these errors were encountered: