You are not logged in.

#1 2024-10-22 14:20:29

zynex
Member
Registered: 2019-03-20
Posts: 29

[SOLVED] Error converting NEF using libvips

I'm using Immch och my server, which uses libvips to convert images to different formats. Recently I noticed that all my NEF files had a size of 160x120. Thought this was an issue with Immich at first, but it seems that the issue is within the libvips package in the Arch repo. They use the same version for the Docker container, and as far as I understood it that one is working. I'm not sure why the same version produces different output?

Found a bug report on libvips GitHub that seems to be related; https://github.com/libvips/libvips/issues/3380

I also tried installing the package locally on my laptop and tried converting it from there, and it produces the same issue there to. Converting a JPEG > WebP works, but trying to do the same with a NEF image, it just outputs a 160x120 image. Using the magickload option seems to work, but depends on imagemagic if I'm correct.

vips webpsave DSC_0413.JPG test.webp > original sized image
vips magickload _MRY7735.NEF test.webp > original sized image
vips webpsave _MRY7735.NEF test.webp > 160x120 sized image

Whats could make the same version of the package produce so different outputs?

[EDIT]

Found the issue. They compiled the package with -Dtiff=disabled option, which the Arch package is not. Rebuilding the package with this option solved it.

Last edited by zynex (2024-10-22 14:46:43)

Offline

Board footer

Powered by FluxBB