bookworm icon indicating copy to clipboard operation
bookworm copied to clipboard

Appstream complains about the image

Open Carmina16 opened this issue 2 years ago • 2 comments

https://github.com/babluboy/bookworm/blob/36fc5d4916b0861b8b91800837d182715de0caea/data/com.github.babluboy.bookworm.appdata.xml.in#L18

This image contains a transparent margin that causes a validation error by appstream-util, causing the build to fail. Please crop the image or change the validation mode to validate-relax.

Carmina16 avatar Oct 09 '22 08:10 Carmina16

Thanks for the issue - can I understand where exactly do you see the issue and for which distro are you packaging? I have not compiled bookworm for the latest version of elementary OS but for the last version there was not problem with the transparent margin. If this is Fedora related then we should adopt a way for it to work on both. Where does validate-relax needs to be specified?

babluboy avatar Oct 09 '22 14:10 babluboy

Any distro that ships appstream-util 0.8+ should do. Just build bookworm and run appstream-util validate <name of generated appdata.xml> . That code is called in test located at https://github.com/babluboy/bookworm/blob/36fc5d4916b0861b8b91800837d182715de0caea/data/meson.build#L67

Carmina16 avatar Oct 09 '22 15:10 Carmina16