resize a batch of photos

버전 1.1.0.0 (3.22 KB) 작성자: Zhiqiang Zhang
The script will let you resize a batch of photos
다운로드 수: 2.2K
업데이트 날짜: 2010/10/2

라이선스 보기

resizephotos -dir max_width_and_height, will let you choose a directory,
and resize all the photos in the directory. When max_width_and_height is
omitted, it uses 1600 by default(1600px is enough for most monitors).

resizephotos -files max_width_and_height, will let you choose some files,
and resize all the files in the directory.

You might be asked for whether to recursively resize all the photos in
subdirectories.

and You might be asked for whether to overwrite the original files. If
you choose 'No', the program will save the resized images in new
directories or files with prefix 'resize-'.

resizephotos(file_or_directory, max_width_and_height, is_recursive, ...
is_overwrite, path_to_save): you can use the function by specifying
the path of the directories and files. When using this method, you can
specific the max width and height of the resized photos. When path_to_save
is omitted, the path to save the resized photos will generated automatically
depends on is_overwrite parameter.

See also imresize

Copyright 2010, zhiqiang.org
author: zhang@zhiqiang.org, url: http://zhiqiang.org/blog/it/batch-resize-images-using-matlab.html

인용 양식

Zhiqiang Zhang (2024). resize a batch of photos (https://www.mathworks.com/matlabcentral/fileexchange/28909-resize-a-batch-of-photos), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

fix some bugs

1.0.0.0