What exactly does it mean that it does not work? What exact error message do you get? Error messages often contain important information about what might be wrong, so it's important to carefully read and understand the error message. If you post the exact error message here, we can help you understand what it might mean.
As you can see in my post this works on my local-machine ( java version "1.7.0_91" ) but not on my test-machine ( java version "1.7.0_79" ).
So I am guessing that there could be a flaw in the 1.7.0_79-version.
The Error-message does not say to much.
javax.imageio.IIOException: Invalid argument to native writeImage
Do your local machine and the test machine run the same operating system? Is is possible to update the test machine to version 1.7.0 update 91? You could then check if it would work on the test machine with update 91.
Or can you install the exact same Java version (update 79) on your local machine? Then you could see if the error also occurs on your local machine.
If, on the same machine, with everything else being the same, the error happens with update 79 and not with update 91 then this is probably a bug in the older Java version.
Thank you Jesper for the encouragement.
The easiest step perhaps would be to install update 79 on my own machine.
There is a difference in the operating systems.
On the local machine I was Using Ubuntu 14.04 - now I am using 15.10 (Ubuntu Wily) - and on the test machine I am running Ubuntu 12.04 ( Ubuntu precise ).
I could always live with the solution that I transform the images to PNG, but I do not know how my future requirements will look like.
So I would be in trouble then.
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad: