You can do it easily with ACDSee. It can be seen from the decompiled code that when the resolution is 300, the width is less than 1948 pixels and the height is less than 3000 pixels. In addition, JPG images should use grayscale, not RGB. tiff needs to be compressed using Group4. This compression method can be easily achieved using ACDSee.