mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
use camera wb for raw (#3806)
This commit is contained in:
parent
60729a091a
commit
7ad12c7f33
3 changed files with 11 additions and 1 deletions
|
@ -13,7 +13,7 @@ mesa-va-drivers libmimalloc2.0 $(if [ $(arch) = "x86_64" ]; then echo "intel-med
|
||||||
# debian build for imagemagick has broken RAW support, so build manually
|
# debian build for imagemagick has broken RAW support, so build manually
|
||||||
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
ENV LD_RUN_PATH=/usr/local/lib:$LD_RUN_PATH
|
ENV LD_RUN_PATH=/usr/local/lib:$LD_RUN_PATH
|
||||||
COPY bin/build-libraw.sh bin/build-imagemagick.sh bin/build-libvips.sh ./
|
COPY bin/build-libraw.sh bin/build-imagemagick.sh bin/build-libvips.sh bin/use-camera-wb.patch ./
|
||||||
RUN ./build-libraw.sh
|
RUN ./build-libraw.sh
|
||||||
RUN ./build-imagemagick.sh
|
RUN ./build-imagemagick.sh
|
||||||
RUN ./build-libvips.sh
|
RUN ./build-libvips.sh
|
||||||
|
|
|
@ -13,6 +13,7 @@ sha256sum -c imagemagick.sha256
|
||||||
tar -xvf ${IMAGEMAGICK_VERSION}.tar.gz -C ImageMagick --strip-components=1
|
tar -xvf ${IMAGEMAGICK_VERSION}.tar.gz -C ImageMagick --strip-components=1
|
||||||
rm ${IMAGEMAGICK_VERSION}.tar.gz
|
rm ${IMAGEMAGICK_VERSION}.tar.gz
|
||||||
rm imagemagick.sha256
|
rm imagemagick.sha256
|
||||||
|
patch -u ImageMagick/coders/dng.c -i use-camera-wb.patch
|
||||||
cd ImageMagick
|
cd ImageMagick
|
||||||
./configure --with-modules
|
./configure --with-modules
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
9
server/bin/use-camera-wb.patch
Executable file
9
server/bin/use-camera-wb.patch
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
@@ -339,6 +339,8 @@
|
||||||
|
option=GetImageOption(image_info,"dng:use_camera_wb");
|
||||||
|
if (option != (const char *) NULL)
|
||||||
|
raw_info->params.use_camera_wb=IsStringTrue(option);
|
||||||
|
+ else
|
||||||
|
+ raw_info->params.use_camera_wb=MagickTrue;
|
||||||
|
option=GetImageOption(image_info,"dng:use-auto-wb");
|
||||||
|
if (option == (const char *) NULL)
|
||||||
|
option=GetImageOption(image_info,"dng:use_auto_wb");
|
Loading…
Reference in a new issue