Thanks a lot for spending time on my question. I really appreciate it.
This is indeed interesting. I think that it did not cause a problem with older wppa+ and wp versions.
It sounds like that there is no way around uploading the pictures again.
I also investigated a bit further. I am not sure to understand your max integer argument, but let me explain why I use the number code first. It is a combination of year, month, day, hours, minutes, seconds. In older versions of wppa+ it was not possible to access the exif time stamps. As I have pictures from different cameras with different naming schemes, I renamed my pictures based on the time stamp to sort them by name (and therefore by time).
About which integer length are you talking? A 32bit integer is much shorter anyway. For instance, I have a picture with name 20130608163629.JPG, which is displayed without problem. The picture before that one with 20130608163335.JPG is not displayed. If an integer would overflow, which can cause nasty problem (I know that from my work), I would expect that pictures up to a certain integer would work and that pictures starting from the rollover would not work. However, I do not see this behavior.
It also appears that the pictures with the long ids do not have a corresponding picture in the data base. Therefore, I will not be able to delete them easily. For instance, aforementioned 20130608163629.JPG refers to https://phil.chillsofa.de/wordpress/wp-content/uploads/wppa/8343.jpg, but all the pictures in the following do not have a picture in the data base until picture 8344.jpg. In principle many pictures should have appeared in between.
I also see that the long ids appear to be truncated in the “Missing thumbnail image #20130608164” statement. This number should be followed by three more numbers.
I agree that something strange is going with long filenames ONLY containing numbers. For other albums I chose to make the filename something like 20130608163629_foto.JPG, which does not cause any problems. I will follow this strategy from now on.
What is the Tweak Option plugin supposed to do in my case?
Thanks a lot again.