image re hoster
idea by gregthe1
One click to get an image from the web onto my own web host and the url into my clipboard!
target reached
Project progress
The pledgers and developers have agreed that the project has been completed.
You can download the finished product, and you can still pledge to the project (effectively a donation to the developer).
Developer Info
PaulButler has completed this project.
Go to the developer’s website.
Project Info
License is open-source.
4 people are pledging, and $23 of the pledges have been paid.
Project Tags
browser extension hosting image pluginProject details
I want a method whereby I can see an image on the internet and get it over to my own web hosting account, and get the URL in my clipboard with just one click. I don’t care how it works, and I’m even willing to have to install something on my web host.
20 latest comments (oldest first)
View all 32 comments.
BTW, Greg, you can test the “are these files available to anyone now” thing by just signing out and then having a look at the project’s downloads page.
Paul, a thumbnail maker would be invaluable. It should also present you with HTML snippets, one for the original and one for the thumbnail and linking to the origanal. What do you think?
gregthe1, I don’t mind if you blog about it, I will probably blog about it soon so feel free to leave your blog URL in the comments and I will link you in my post.
I will continue to update this as an open-source project. I will consider adding a thumbnail maker. If you use WordPress, I wrote a plugin recently that would be useful for resizing images that were uploaded with the image re-hoster, it can be found here: http://www.paulbutler.org/archives/proper-image-resizing-for-wordpress/. You would just have to make images upload to the wordpress upload directory.
Here is my blog post about it
A thumbnail maker would be a very natural fit for this project. I use the non-WSIWYG editor for WordPress so you’re plugin wouldn’t help me unfortunately.
Perhaps you can copy the code that this guy uses to make the thumbnails. I think it’s open source.
Thanks for the link. I will be posting about it in a few days. By the way, my WordPress plugin works even if you don’t use the Wysiwyg editor, but you need to specify both the height and width of the image. In the future you will only have to specify one and the plugin will figure out the other from the aspect ratio.
By the way, hiding the script behind a random URL only works if you change the upload directory (the configuration options are at the top of the PHP file and should be fairly easy to figure out because they are well-commented). Currently I can right-click your image and see where the script is installed based on the image’s path.
Bug: images that don’t end in a normal file extension aren’t accepted. Example
It sounds minor except that Flickr seems to often put GET parameters after an image.
I have uploaded the latest version (0.3). IT IS IMPORTANT THAT YOU UPDATE because 0.2 and prior versions had a huge security issue that I don’t know how I missed.
gregthe1: Thanks for the bug report. I have fixed this, although it doesn’t yet strip GET parameters so you will get a weird filename.
I have also added an optional password, read the PHP configuration (in the index.php file) for instructions on how to use it.
Thanks for the update, Paul. The script seems to run slowly now (10-30 seconds). Of course it could just be my web hosting company acting up. Would you mind checking if it’s slow for you?
Hmm, doesn’t seem to be working at all now. For example I’m trying to do the main image on this page: http://www.flickr.com/photos/candanguinho/1150193576/
Greg, you are right, it was slow and broken for me too. Unfortunately I had to rush the last release as I wanted to fix the security flaw I discovered before going away for the weekend. In my hurry I not only broke the software, but I didn’t actually fix what I intended to fix. I put version 0.4 up now, it should fix the problems you are having. Again, in my rush to get a more secure version out there I haven’t had much of a chance to test it, so let me know how it goes.
By the way, I did add the password security feature in 0.3, but I haven’t documented it except in the PHP source code. If you want to password-protect the script, read the source code for instructions.
Make that 0.5; I somehow forgot to support PNG in 0.4.
I’m not seeing 0.5?
Greg, here is a direct link: http://micropledge.com/projects/image-re-hoster/downloads/1/imagerehoster-0.5.tar.gz
I put it under “upcoming release” by mistake, but it should be on the download page anyway. I still see it there.
Micropledge, is that a bug that I’m not seeing that?
You’re right, I tried logging out and I can’t see the file.. I think it may be me misunderstanding the release system rather than a bug. I re-uploaded it as part of the current release, hopefully it will work now.
Well your download link did work, but it’s still not showing on the downloads page. Micropledge, could you check on this? And feel free to delete the comments talking about the potential micropledge bug.
Seems to work, though on this image http://i144.photobucket.com/albums/r180/taossa/cover_sm.png I got this warning:
Notice: Undefined offset: 6 in /nfsn/content/answermysearches/htdocs/ahidd8adggae315kjkadag34err/index.php on line 412
Hi guys, it’s not quite a bug, but it is a bad design. :-) “Upcoming release” doesn’t make sense for completed projects – upcoming releases are only visible to the developer, and no more estimate/vote cycles will take place on a finished project. Fixed now, and I’ve modified the downloads page a little so all this is a bit clearer. :-)
(So Paul, I moved your version 0.5 download to the 100% release and also updated the link in your comment above.)
Greg, I have uploaded a new version (0.6) that fixes this. Sorry it took so long, I had another project that was keeping me busy.
Add a comment
Before you add a comment you must be signed up – it takes about 30 seconds. Sign up now.