Print ID photo on 4x6 photo paper
This program generates a set of standard passport- or visa-sized photos that can be printed on a regular 4x6 inch-sized photo paper.
Photo sizes that are supported:
1 inch (38x25mm); big 2 inch (53x35mm); small 2 inch (48x33mm);
2 inch square (50x50mm)
User direction:
Specify photo type, photo resolution (optional)
The main function is PrintPassportPhoto.m, select the source photo,
Then this software will output a picture that is suitable for printing on a 4x6-inch-sized photo paper.
You can print it out at a local or online store, which costs less than 15 cents and get 4-12 ID photos.
NOTE: you must choose the 4x6-inch-sized photo paper!
After the 4x6 photo is done, cut the photo into small ID photos.
Input Values:
PhotoType:
'1': 1 inch: 38x25 mm
'2b': big 2 inch: 53x35 mm
'2s': small 2 inch: 48x33 mm (for Chinese passport)
'sq2' 2 inch square: 50x50 mm (for USA visa)
default format is 'sq2'
PhotoReso = [Height, Width] in pixels
default resolution: 1200x1800 pixels
Photo paper size is 4x6 inches. This can not be modified
Author: Zhen Qian (email: zhqian@gmail.com)
10/27/2009 All rights reserved
Cite As
Zhen Qian (2026). Print ID photo on 4x6 photo paper (https://www.mathworks.com/matlabcentral/fileexchange/25665-print-id-photo-on-4x6-photo-paper), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
