ufraw
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ufraw [2010/03/18 06:58] – suapapa | ufraw [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
|   *[[http:// |   *[[http:// | ||
| + |   *[[http:// | ||
| + | |||
| + | *raw image thumbnailer in gconf | ||
| + | / | ||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | <code bash> | ||
| + | $ ufraw-batch --embedded-image --out-type=png \ | ||
| + | --size=256x256 --output=ufraw_thumb.png IMGP0206.PEF  | ||
| + | </ | ||
| + | |||
| + | ====== 원인 ====== | ||
| + | 다음 명령어로 뽑아낸 Exif thumbnail이 변경 전의 사진으로 들어가 있음 :( | ||
| + | <code bash> | ||
| + | exiv2 -e t IMGP0206.jpg | ||
| + | </ | ||
| + | IMGP0206-thumb.jpg 형식으로 추출됨. 크기는 160x160 | ||
| + | |||
| + | ====== 수정안 ====== | ||
| + | 김프로 변환 후 저장한 이미지에서 추출시에는 | ||
| + | <code bash> | ||
| + | exiv2 -e t IMGP0206_gimp.jpg | ||
| + | </ | ||
| + | 196x147 사이즈로 정상 썸네일 생성 확인 | ||
| ====== using git ====== | ====== using git ====== | ||
| <code bash> | <code bash> | ||
| Line 10: | Line 35: | ||
| .... | .... | ||
| </ | </ | ||
| - | |||
| ====== exif thumbnauil fix ====== | ====== exif thumbnauil fix ====== | ||
| 본래의 코드 | 본래의 코드 | ||
| ufraw_writer.c | ufraw_writer.c | ||
| <code c> | <code c> | ||
| - | ... | ||
| ufraw_exif_prepare_output(uf); | ufraw_exif_prepare_output(uf); | ||
| jpeg_write_marker(& | jpeg_write_marker(& | ||
| ufraw_write_image_data(uf, | ufraw_write_image_data(uf, | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | ufraw 썸네일러에서 사용하는 코드 | ||
| + | <code c> | ||
| + | int ufraw_load_raw(ufraw_data *uf) | ||
| + | ... | ||
| + |     if (uf-> | ||
| + | dcraw_image_data thumb; | ||
| + | 	if ( (status=dcraw_load_thumb(raw, | ||
| + | 	    ufraw_message(status, | ||
| + | return status; | ||
| + | } | ||
| + | 	uf-> | ||
| + | 	uf-> | ||
| + | 	return ufraw_read_embedded(uf); | ||
| + | } | ||
| ... | ... | ||
| </ | </ | ||
ufraw.1268895505.txt.gz · Last modified: 2013/08/03 05:04 (external edit)