First - Cheers to Paour for doing great work.
My problem (followed by my solution):
I recently attempted to install Gallery 1.4 on a shared hosting account at superbhosting.net. However, I quickly discovered a problem with superbhosting and their setup. For security reasons, they have disabled the ability to execute binaries on the server. So, this means that ImageMagic and NetPBM are rendered useless. (Note: safe mode is OFF on PHP) I quickly found gallery remote and downloaded it, hoping that it would allow me to do all of the resizing and thumbnailing and just upload the finished result to gallery without doing any image processing on the server. I also quickly found out that this was not true. I was still getting "Upload Failed: Upload Error: Unable to create thumbnail (0)" from gallery remote.
I went to the sourceforge CVS and downloaded the source to Gallery Remote to see what was up. After doing some studying of the code, I noticed that Gallery Remote doesn't upload the thumbnail, and no matter what, a thumbnail is created on the server after the image is uploaded. This wasn't going to work for me.
Basically, I modified Gallery Remote to send the thumbnail (that it had already created in order to show in the GUI) as another mime content section in the request to gallery_remote2.php. Then, I modified the gallery_remote2.php to record the thumbnail path. (I actually found that it had support to upload the thumbnail, but it just wasn't being used, so I really didn't have to change much). I fired up gallery remote, and it worked like a champ... almost.
Then I realized that the server was trying to generate a Highlight image as well. So, I hacked the albums.php file to just show the thumbnail that I had already uploaded instead of having to fire up an .exe to create the highlight image for the album.
Moral of the story:
If anyone else out there is having the same problem, I'm happy to share my modified source (without any warranty, of course). I was also hoping to generate some interest from the core developers to possibly build this into Gallery Remote natively. This feature would significantly help out other folks like myself in a shared hosting environment that doesn't allow binaries to be executed.
To view my modified gallery: