Does anybody know if there is a way to set the resolution (dpi) of a jpeg created by gd? This would be very helpful.
Unfortunately, no. It makes them in 72dpi all the time. It will lose any dpi settings you have if you open and output another JPEG (imagecreatefromjpeg), as well.