Feed cover image DPI is not supported by Apple Podcasts
Describe the bug
When a cover image is uploaded for a podcast, it is resized to 1400 x 1400 pixels as seen in app/Config/Images.php
. During the resize, it also seems as though the DPI is set to 96, which causes the following error when attempting to submit the feed to Apple:
Art - Artwork must be 3000 x 3000 pixels, JPG or PNG, in RGB color space, and hosted on a server that allows HTTP head requests.
Because all of the things listed in that error were in fact true, I reached out to Apple Podcast support and they told me this:
After investigating your image, the dpi if 96. Show artwork for your podcast must meet these technical specifications. Use our show cover art template to ensure your artwork looks great on Apple Podcasts.
• Size: square; 1400 x 1400 to 3000 x 3000. • Resolution: 72 dpi • File type: JPEG or PNG • Colorspace: RGB
I verified this is the case in both v1.0.5 and v1.1.2.
Steps to reproduce
- Create a new podcast (or update an existing one), upload a cover image that is 72 dpi.
- Publish podcast
- Get the cover_feed URL from RSS feed
- Download the image at the URL
- It will have DPI of 96
Expected behavior
The image DPI should be 72
Actual behavior
The image DPI is 96
Relevant logs and/or screenshots
Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.
Context
- Castopod: v1.0.5 and 1.1.2 docker images
- OS: Debian Server
- Browser: Firefox
- Web server: castopod/web-server docker image
Possible fixes
I'm not sure if it's as simple as adding the desired DPI to app/Config/Images.php
. I'm not super familiar with PHP.