jpegtran.md 1.3 KB

jpegtran

JPEG ํŒŒ์ผ์˜ ๋ฌด์†์‹ค ๋ณ€ํ™˜ ์ˆ˜ํ–‰. ๋” ๋งŽ์€ ์ •๋ณด: https://manned.org/jpegtran.

  • ์ด๋ฏธ์ง€๋ฅผ ์ˆ˜ํ‰ ๋˜๋Š” ์ˆ˜์ง์œผ๋กœ ๋ฐ˜์ „:

jpegtran -flip {{horizontal|vertical}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}

  • ์ด๋ฏธ์ง€๋ฅผ ์‹œ๊ณ„ ๋ฐฉํ–ฅ์œผ๋กœ 90, 180 ๋˜๋Š” 270๋„ ํšŒ์ „:

jpegtran -rotate {{90|180|270}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}

  • ์ด๋ฏธ์ง€์˜ ์ขŒ์ƒ๋‹จ์—์„œ ์šฐํ•˜๋‹จ ์ถ•์œผ๋กœ ๋Œ€์นญ ๋ณ€ํ™˜:

jpegtran -transpose {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}

  • ์ด๋ฏธ์ง€์˜ ์šฐ์ƒ๋‹จ์—์„œ ์ขŒํ•˜๋‹จ ์ถ•์œผ๋กœ ๋Œ€์นญ ๋ณ€ํ™˜:

jpegtran -transverse {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}

  • ์ด๋ฏธ์ง€๋ฅผ ๊ทธ๋ ˆ์ด์Šค์ผ€์ผ๋กœ ๋ณ€ํ™˜:

jpegtran -grayscale {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}

  • ์ด๋ฏธ์ง€์˜ ์ขŒ์ƒ๋‹จ์—์„œ ๋„ˆ๋น„ W์™€ ๋†’์ด H์˜ ์ง์‚ฌ๊ฐํ˜• ์˜์—ญ์œผ๋กœ ์ž๋ฅด๊ณ , ํŠน์ • ํŒŒ์ผ์— ์ถœ๋ ฅ ์ €์žฅ:

jpegtran -crop {{W}}x{{H}} -outfile {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}}

  • ์ด๋ฏธ์ง€์˜ ์ขŒ์ƒ๋‹จ์—์„œ ์‹œ์ž‘์  X์™€ Y๋กœ๋ถ€ํ„ฐ ๋„ˆ๋น„ W์™€ ๋†’์ด H์˜ ์ง์‚ฌ๊ฐํ˜• ์˜์—ญ์œผ๋กœ ์ž๋ฅด๊ธฐ:

jpegtran -crop {{W}}x{{H}}+{{X}}+{{Y}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ด๋ฏธ์ง€.jpg}} > {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ.jpg}}