Skip to content

thumbnail-loader: fall back to external thumbnailers when built-in fails#122

Open
j4np0l wants to merge 1 commit into
lxde:masterfrom
j4np0l:fix/thumbnail-builtin-fallback-to-external
Open

thumbnail-loader: fall back to external thumbnailers when built-in fails#122
j4np0l wants to merge 1 commit into
lxde:masterfrom
j4np0l:fix/thumbnail-builtin-fallback-to-external

Conversation

@j4np0l
Copy link
Copy Markdown

@j4np0l j4np0l commented May 8, 2026

When fm_file_info_is_image() returns TRUE (e.g. for image/x-exr, image/vnd.radiance, image/vnd.dxf), generate_thumbnails() entered the built-in path exclusively. If GdkPixbuf could not load the file, generate_thumbnails_with_builtin() returned FALSE but the return value was ignored, so external thumbnailers registered for those MIME types were never invoked.

Fix: check the return value and fall through to generate_thumbnails_with_thumbnailers() on failure.

Fixes: lxde/pcmanfm#51

When fm_file_info_is_image() returns TRUE (e.g. for image/x-exr,
image/vnd.radiance, image/vnd.dxf), generate_thumbnails() entered
the built-in path exclusively. If GdkPixbuf could not load the file,
generate_thumbnails_with_builtin() returned FALSE but the return value
was ignored, so external thumbnailers registered for those MIME types
were never invoked.

Fix: check the return value and fall through to
generate_thumbnails_with_thumbnailers() on failure.

Fixes: lxde/pcmanfm#51
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

Successfully merging this pull request may close these issues.

Thumbnails not being generated for some specific files

1 participant