Image processing
Check dimensions, orientation and transparency before changing an image. Use a copy when cropping, resizing or applying watermarks.
Choose JPEG for typical photographs, PNG for lossless transparency and WebP when your destination supports it.