Article Title: Use a command in Linux to modify the image size in batches. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When taking photos, you often need to reduce the size of a large number of photos to facilitate online transmission or storage.
The following describes a simple method to change a large number of photos to a specified size.
Find./-name '*. jpg'-exec convert-resize 600x480 {}{}\;
Note the space and the last semicolon. The conversion will overwrite the source file. Two commands are used here.
This command finds all jpg files in the current directory. Execute conver-resize 600x480 file name. Find executes the convert command once for each file. Using the find command is sometimes more convenient than writing a script.