& Nbsp; a large number of photos are often reduced to facilitate online transmission or storage. The following describes a simple way to change a large number of photos to the specified size find./-name *. jpg-execconvert-resize600x480 {}{}; pay attention to the space and the last semicolon. Conversion
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.