I am using GIMP v.2.8.16 to combine several figures from different file formats into a single JPEG image. I'm able to accomplish this and save as JPEG, and open it on my computer perfectly fine, but when I go to upload it to a website which requires .jpg format files the file is not recognized as a jpeg. I've had this issue multiple times now where the .jpg exported by GIMP is not recognized by other programs.
Just to test that it was related to GIMP, I combined the same figures using LibreOffice Impress and saved as a JPEG, and this file was able to be uploaded with no problems.
Has anyone else experienced this issue and/or come up with a solution?
The image that you are using worked rendered OK on a demo webpage that I created to test it, so I don't think that there is anything wrong with your image. Maybe there is a size limitation on image files on your website. The image that you are uploading to a website is a 4.8 MB .jpg image that is possibly too large for the website that you are uploading it to. Try scaling the image down to reduce its size to something more manageable for the web, not more than 2.0 MB.
How to resize an image with HTML is for users who want to keep an image at its original file size (in KB or MB) and just resize the display size of the image on a webpage.
I have also found that making any minuscule change to the image in a different application sometimes solves this type of problem.
Open the .jpg file in Image Viewer. Image Viewer is the default application for opening images in Ubuntu.
Select Edit -> Flip Horizontal and flip the image horizontally.
Close the image and when a dialog box will pops up asking if you want to save the changes that you have made to the image, click the Save button.
Repeat steps 1-3 again to flip the image horizontally again so that it looks the same as it was originally.
Background: @karel's answer
reduce the image size to not more than 2.0 MB.
Solution that preserves the resolution (and dpi) of the image file
reduce the image size using the 'quality' setting
There is an option in
gimp
to reduce the 'quality' of a jpeg image. You get a dialogue box, when you try to export the image (as jpeg). Normally I use 'quality=90'.You can test for example 'quality=70', which reduced the size of a test image from 3.6 MiB to 1.6 MiB. And after that you can fine-tune the 'quality' setting to fit your purpose.
The resolution (pixelwise) remains the same, but the rendering of the colour in adjacent pixels is simlified in a way that reduces the size of the file with the 'least possible loss of quality', when seen by the human eye.
Look at the following picture:
Use CTRL + E to export. Then change the file extension for other OS.