mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	use camera wb for raw (#3806)
This commit is contained in:
		@@ -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
 | 
			
		||||
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_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-imagemagick.sh
 | 
			
		||||
RUN ./build-libvips.sh
 | 
			
		||||
 
 | 
			
		||||
@@ -13,6 +13,7 @@ sha256sum -c imagemagick.sha256
 | 
			
		||||
tar -xvf ${IMAGEMAGICK_VERSION}.tar.gz -C ImageMagick --strip-components=1
 | 
			
		||||
rm ${IMAGEMAGICK_VERSION}.tar.gz
 | 
			
		||||
rm imagemagick.sha256
 | 
			
		||||
patch -u ImageMagick/coders/dng.c -i use-camera-wb.patch
 | 
			
		||||
cd ImageMagick
 | 
			
		||||
./configure --with-modules
 | 
			
		||||
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");
 | 
			
		||||
		Reference in New Issue
	
	Block a user