-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Scanning, Faxing, and Copying
- Automaticaly Resize a scanned photo

Create an account on the HP Community to personalize your profile and ask a question
11-20-2023 08:45 AM
Hello.
On a 5640 series, I use integrated "Document Scanner program" or "hp-scan" command line.
When I scan a photo, to adjust the final size I need to do it manualy.
Is there an option to automatically detect the size of the photo and resize it at the correct size before saving ?
I wrote a python program to do it but perhaps there is a native solution.
Regards.
11-20-2023 12:24 PM
Welcome to the HP Community --
@PatrickConstant wrote:Hello.
On a 5640 series, I use integrated "Document Scanner program" or "hp-scan" command line.
When I scan a photo, to adjust the final size I need to do it manually.
Is there an option to automatically detect the size of the photo and resize it at the correct size before saving ?
I wrote a python program to do it but perhaps there is a native solution.
Regards.
Relevant to Windows
The short Answer is "Yes".
Page Size = Detect Photos
====================================================
The longer answer depends on the actual method you are using to run HP Scan.
You mention HP Scan as a part of the command line formatted submission process.
I don't have direct experience with the methodology -- we do have one example in the Community explaining one member's contribution on the subject.
Start
If you are using HP Scan in a vbs batch file to automatically configure and submit a job type, the following is a good resource - the author details how the sequence is set up and then executed.
NOTE
The one example plate showing HP Scan shows the Page Size detail for "Document" (PDF) shortcut to Detect Content on Page.
(The naming convention for this type of "detect" action might be different due to printer model / software / vintage.)
That said, a similar "Detect" setting is available for Page Size Photo / Save as JPEG >> "Detect Photos"
Thread - How to create VBS definition file for HP Scan
============================================
HP Scan - Called as an executable in Windows
Depending on the Operating System / version and the vintage of the full driver printer software, HP Scan supports the creation of Custom Shortcuts.
HP Scan - Settings in the main menu
Scan type
HP Scan supports two types of data scans:
- Photo / Image
- PDF Documents
Page Size
Page Sizes are dependent on the printer model and the controlling printer software.
For example,
If your printer and its software do not support "Legal",
(then)
Page Size should be absent from the drop-down list of available page sizes.
==========================================================
Example - Windows - HP Scan - Photo / JPEG - Main Menu - More > sub-menu Scan
9025_HP_Scan_menu_JPEG_More_Image_All_7
=+=+=+=+=+=+=+=+=+=+=+=+=+=
References / Resources
------------------------------------------------------------------
HP Printer Home Page - References and Resources
Learn about your Printer - Solve Problems
“Things that are your printer”
When the website support page opens, Select (as available) a Category > Topic > Subtopic
NOTE: Content depends on device type and Operating System
Categories: Alerts, Troubleshooting, Ink & Paper, HP Software / Drivers / Firmware Updates , Setup & User Guides, Product Specifications, Account & Registration, Warranty & Repair
Open
Enter the device type and model name of your HP product
OR
Results for "5640 Printer" (2)
Thank you for participating in the HP Community --
People who own, use, and support HP devices.
Click Yes to say Thank You
Question / Concern Answered, Click my Post "Accept as Solution"