if I attempt to download it through the browser i get a message that it “cannot be displayed because it conatins errors.”
If I download the file through command line “ipfs cat QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f/monkey.jpg >monkey2.jpg”
The downloaded image is fine.
everything youre doing seems right, except that the file is NOT a jpeg. It looks more like a RAW image.
If you want to start with a PNG or JPG, I have converted it for you here: https://ipfs.works/ipfs/QmWkGgzA6eJTQUnkbzsDZDD7j2fnAQqd9a7gw7BgGLHb1a/monkey.png https://ipfs.works/ipfs/QmTJpHuzGeN6vpayXXBeEx149xeTaJEQs6UcRcseAKfCB7/monkey.jpg