해상도 변환 방법 (Photoshop과 ImageMagick 비교)
1719 단어 ImageMagick포토샵
소개
Photoshop과 ImageMagick과 해상도 변환 처리에 차이가 있는지 조사했으므로, 정리한다.
NearestNeighbor(NN)와 BiLinear(BL)를 대상으로 한다.
환경
Photoshop: PhotoshopCC(2015) 32bit판 (20150529.r.88)
ImageMagick: ImageMagick-6.9.1-4-Q16-x86-dll
대상 이미지
640x480 회색조 이미지.
가장 왼쪽 끝에서 오른쪽 끝을 향해 계조가 연속하고 있다.
이것을 8bitRAW 화상으로서 보존.

비교 조건
우선, 횡축 방향으로의 해상도 변환을 실시한다.
해상도 변환 방식
50%NN
50%BL
33%NN
33%BL
200%NN
200%BL
해상도 변환 기법
Photoshop
이미지를 열고 메뉴 "이미지"- "이미지 해상도"로 변환합니다.
열린 창에서 변환 방법을 지정합니다.
ImageMagick
이하의 커맨드로 해상도 변환을 행한다.
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Nearest -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-NN.raw
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Bilinear -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-BL.raw
など
결과
해상도 변환 방식
Photoshop/ImageMagick 비교
50%NN
일치
50%BL
일치
33%NN
일치
33%BL
불일치
200%NN
일치
200%BL
불일치
33% Bilinear는 불일치. 이미지에 차이가 흩어져 있습니다.
정수배의 처리(50%와 200%)는 일치한다고 생각했지만, 200%의 Bilinear가 불일치였다.
ImageMagick에서의 해상도 변환에서는, 이미지의 우단의 1픽셀열이 191(=0xBF)이 되고 있어 Photoshop에서의 결과 255(=0xFF)와 차이가 있었다.
Reference
이 문제에 관하여(해상도 변환 방법 (Photoshop과 ImageMagick 비교)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/hsagae/items/e64f5340303bde0d24f7
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Photoshop: PhotoshopCC(2015) 32bit판 (20150529.r.88)
ImageMagick: ImageMagick-6.9.1-4-Q16-x86-dll
대상 이미지
640x480 회색조 이미지.
가장 왼쪽 끝에서 오른쪽 끝을 향해 계조가 연속하고 있다.
이것을 8bitRAW 화상으로서 보존.

비교 조건
우선, 횡축 방향으로의 해상도 변환을 실시한다.
해상도 변환 방식
50%NN
50%BL
33%NN
33%BL
200%NN
200%BL
해상도 변환 기법
Photoshop
이미지를 열고 메뉴 "이미지"- "이미지 해상도"로 변환합니다.
열린 창에서 변환 방법을 지정합니다.
ImageMagick
이하의 커맨드로 해상도 변환을 행한다.
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Nearest -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-NN.raw
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Bilinear -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-BL.raw
など
결과
해상도 변환 방식
Photoshop/ImageMagick 비교
50%NN
일치
50%BL
일치
33%NN
일치
33%BL
불일치
200%NN
일치
200%BL
불일치
33% Bilinear는 불일치. 이미지에 차이가 흩어져 있습니다.
정수배의 처리(50%와 200%)는 일치한다고 생각했지만, 200%의 Bilinear가 불일치였다.
ImageMagick에서의 해상도 변환에서는, 이미지의 우단의 1픽셀열이 191(=0xBF)이 되고 있어 Photoshop에서의 결과 255(=0xFF)와 차이가 있었다.
Reference
이 문제에 관하여(해상도 변환 방법 (Photoshop과 ImageMagick 비교)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/hsagae/items/e64f5340303bde0d24f7
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
우선, 횡축 방향으로의 해상도 변환을 실시한다.
해상도 변환 방식
50%NN
50%BL
33%NN
33%BL
200%NN
200%BL
해상도 변환 기법
Photoshop
이미지를 열고 메뉴 "이미지"- "이미지 해상도"로 변환합니다.
열린 창에서 변환 방법을 지정합니다.
ImageMagick
이하의 커맨드로 해상도 변환을 행한다.
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Nearest -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-NN.raw
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Bilinear -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-BL.raw
など
결과
해상도 변환 방식
Photoshop/ImageMagick 비교
50%NN
일치
50%BL
일치
33%NN
일치
33%BL
불일치
200%NN
일치
200%BL
불일치
33% Bilinear는 불일치. 이미지에 차이가 흩어져 있습니다.
정수배의 처리(50%와 200%)는 일치한다고 생각했지만, 200%의 Bilinear가 불일치였다.
ImageMagick에서의 해상도 변환에서는, 이미지의 우단의 1픽셀열이 191(=0xBF)이 되고 있어 Photoshop에서의 결과 255(=0xFF)와 차이가 있었다.
Reference
이 문제에 관하여(해상도 변환 방법 (Photoshop과 ImageMagick 비교)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/hsagae/items/e64f5340303bde0d24f7
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Nearest -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-NN.raw
convert -size 640x480 -depth 8 gray:sample-640x480.raw -filter point -interpolate Bilinear -distort Resize 50%x100% -depth 8 gray:sample-50per-320x480-IM-BL.raw
など
해상도 변환 방식
Photoshop/ImageMagick 비교
50%NN
일치
50%BL
일치
33%NN
일치
33%BL
불일치
200%NN
일치
200%BL
불일치
33% Bilinear는 불일치. 이미지에 차이가 흩어져 있습니다.
정수배의 처리(50%와 200%)는 일치한다고 생각했지만, 200%의 Bilinear가 불일치였다.
ImageMagick에서의 해상도 변환에서는, 이미지의 우단의 1픽셀열이 191(=0xBF)이 되고 있어 Photoshop에서의 결과 255(=0xFF)와 차이가 있었다.
Reference
이 문제에 관하여(해상도 변환 방법 (Photoshop과 ImageMagick 비교)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/hsagae/items/e64f5340303bde0d24f7텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)