Rehost Image is a Firefox extension that adds a right-click option for images: "Rehost Image and Copy to Clipboard". This will upload the image to alternate hosting, then copy the URL of the uploaded image to your clipboard.
This makes it easy to share images you've found on the web, without the risks of hotlinking.
- Upload to:
- Your own webspace via FTP
- Imgur (Anonymously or to your account)
- ImageShack (Anonymously or to your account)
- Can automatically resize images before uploading
- Can shorten image URLs with goo.gl
- Supports setting up multiple upload locations
- Optionally keeps a log of all uploaded images
- Checks the image type and fixes the extension if needed
- Uploads image directly from browser cache
Can you add support for tinypic or some other image hosting?
I have a few requirements on what image hosts I'll add:
- Must have a public upload API
- Must allow hotlinking
- Should keep images in their native format rather than resizing or converting them
It also helps if there aren't any existing Firefox extension that can do right-click uploads to that host.
Many sites do not have a public API; they want you to go to their website to upload so they make money on ads. I could try and reverse engineer it and upload to their space, but that means they have a monetary incentive to break compatibility by changing names on their upload forms and variables. It wouldn't be good for you because your tool would keep breaking and it wouldn't be good for me because I'd be fighting a war with a bunch of image sites.Can you add SFTP support?
I would love to, but at this moment, writing a good SFTP client in a Firefox extension means implementing an SSH client from scratch, which is a lot
of work. If someone wants to try and tackle it, however, I would be delighted to have your help.I'm having problems with my FTP uploads, can you help?
First, note that Rehost Image uploads in Passive mode only at the moment, but this should not be an issue because the vast majority of FTP servers accept that. If you're stuck with a server that only supports active mode, open up a feature request.
Anyway, I think by now I have all the FTP bugs ironed out, but it's possible more may crop up. Different FTP servers send down commands differently so it's hard for me to test against every one. If you are having difficulties uploading to an FTP server that you can connect to successfully with another client, there are a few things you can do to help:
- Go to about:config and enable extensions.rehostimage.logftpcommands by double-clicking on it.
- Attempt to upload an image and then check Tools -> Error Console and take a screenshot or copy the log.
- Open an issue with the log pasted in.
Getting an account at that FTP server would be the most useful as I could test against it, but I understand that many times that is impossible to do.