삼성 휴대 전화로 사진을 찍었고 :
휴대 전화에 표시 될 때 방향이 좋습니다.
방향은 Picasa에 표시 될 때 좋습니다. 즉, JPG 파일에 올바른 방향 메타 데이터가 포함되어 있습니다.
한 가지 해결책은 "Windows 7에 내장 된 이미지 뷰어는 잊어 버리고"다른 더 나은 이미지 뷰어를 사용하는 것 입니다. 하지만 저는 이것을 원하지 않습니다 .
I would like to permanently rewrite the JPG files (and overwrite them) with the new good orientation, in bulk for hundreds of JPG files, i.e. like if I clicked manually hundreds of times on these buttons when viewing the images one after another:
but automatically, with a script.
How to do this?
Note: I know it might not be lossless, but still I would like a permanent rotation so that the default Windows 7 image viewer see them with the good orientation.
Note 2: here is the source file, available for download.
Download jpegtran
from here: http://jpegclub.org/jpegtran/. Direct link to jpegtran.exe. You won't need to run this .exe yourself, but it will be necessary for jhead
(see next point) to work. jpegtran
is a tool that can perform, according to its home page, "lossless rotation and related transforms".
Download jhead
from here: http://www.sentex.net/~mwandel/jhead/. Direct link to jhead.exe. jhead
is an "Exif Jpeg header manipulation tool", that will read the orientation metadata inside the JPG, and pass it to jpegtran
for rotation, if necessary.
Just run
jhead -autorot *.jpg
and that's it!
이 질문 은 유용했으며 Windows 사용자의 관점에서 쉽게 사용할 수 있도록 세부 정보를 추가했습니다.
참고 : 때때로 일부 파일에 오류가 발생하여 다른 파일에 대한 처리를 계속할 수 없습니다. 이는 성가신 일입니다. 그런 다음 for /r %i in (*.jpg) do jhead -autorot "%i"
이 경우 도움이 될 수 있습니다. [배치 파일 인 경우 사용 for /r %%Mi in (*.jpg) do jhead -autorot "%%i"
]
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다