Would this work?
Probably not, as described.
JPEG has no idea about physical size, only pixels. So you have to define a conversion factor from pixels to physical sizes, typically by setting a PPI (
pixels per inch) metadata in the JPEG. E.g., a typical PPI value is 300 pixels per inch, so for a 6x4 you need to make sure your JPG image is 1800x1200 and that you set 300 PPI in the metadata.
At the printer, they will need to honor this PPI value. Each printer has a set "
dots per inch" (DPI) it will print at. Sometimes that's 300 DPI, but often it's 150 DPI, 360 DPI or even something like 2880 DPI. You'll need to tell your print shop to make the proper conversion. Some printer drivers will make the conversion automatically, but more typically it will just scale up/down to image to the paper size minus the border size.