opened
DanielMcCrystal
username_0
Originally, I had it hardcoded to read/write the images as PNGs. It didn't seem to cause any problems, so I left it in. But after playing around with it for a little bit, I realized that uploading JPG files that were much less than 1MB became larger than 1MB when reading them as PNGs. I implemented a feature that reads the file extension of the image the user uploads, and treats it accordingly.
Allowed for any image type to be uploaded.
issue
created
kyrabusser
username_1
What happens if the user uploads a file with an invalid extension? How do we know if a filetype is acceptable for ImageIO?
comment