Issue summary
Unable to generate ICNS file for push notification package
This error had been spotted in the logs of the directory-api service on production. Staging environment seemed to be affected as well.
Found an article where the similar issue was described with a solution of having a precise control over icons DPI:
- url: https://pushpad.xyz/blog/unable-to-generate-icns-file-for-push-notification-package-solved
- solution: convert -units PixelsPerInch src -density 72 dst
The solution to do this programatically was also found:
im = Image.open('/tmp/dpi.png')
im.save('/tmp/dpi.png', dpi=(72, 72))As it turned out, the issue was caused by Sonoma macOS update. The error does not occur on earlier versions of the system.