This Is an Upload, Not a Print
The pixel count is the constraint that matters.
Pakistan's visa applications run through the NADRA online visa system, which means you attach a file rather than hand over a print. The published requirement is that the image must be larger than 350 x 467 pixels.
That reframes what can go wrong. A photo can be a perfectly correct 35x45mm crop and still be rejected for being too few pixels — which is exactly what happens if you crop a small thumbnail, or use an image that has been resized down by a messaging app before you saved it.
This page outputs 413 x 531 pixels, which clears the floor with room to spare. Work from your original camera file rather than a shared copy, because the recompression that happens when a photo travels through chat apps costs both pixels and sharpness.