Setting the right image size
How to change the image size to fit 4096 pixels on the longest side
Open Preview on your Mac computer.
Open the Image you would like to check.
Click on Tools > Adjust Size
Make sure the Scale Proportionally box is ticked
Set the measurement unit to pixels
In the longest side of the image enter 4096, the other side will resize in proportion automatically.