I am facing a bizarre issue. I am creating a PDF dynamically using images stored in the system. I am using a VF page and using RenderAs="pdf" to generate the file. Everything is working as expected. However, there is one specific image that comes inverted in the pdf. When I remove the renderAs and just render as a VF page the image is shown correctly. I have also checked the file by downloading it and it's proper.
Additionally, I have deleted the file and reuploaded it, and it still comes out inverted.
It's quite trivial since it's one specific image at the moment, but I would like to avoid this issue for future uploads. Can anyone give me a clue as to why it is being rendered upside down?