GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: Can't upload featured image with certain image types #1233

Closed tobip closed 11 months ago

tobip commented 11 months ago

Operating system

Linux Manjaro sway edition

Publii version

0.42.1 build 16233

Post editor

WYSIWYG editor

Bug description

When I want to add a featured image it won't work with certain files.

Steps to reproduce

  1. Edit a post
  2. Klick on "add featured image"
  3. Select certain jpg files that don't work Example file: holzkisten2

Relevant log output

(process:90384): GLib-CRITICAL **: 13:35:35.246: g_datalist_id_set_data_full: assertion 'key_id > 0' failed
dziudek commented 11 months ago

Hi,

Most probably it is not related to filename but to your file itself. Please try to compress your file with tool which removes EXIF metadata and try again

Unfortunately Sharp sometime has issues with some files. For me your file is working fine

tobip commented 11 months ago

Thanks a lot, removing exif data solved my issue!