image re hoster

One click to get an image from the web onto my own web host and the url into my clipboard!

$10
target reached
$23 contributed, $23 held in trust
$

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).

11 Aug
20 Aug
project completed
Downloads

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 plugin
comments

Project 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.

add your own

20 latest comments (oldest first)

View all 32 comments.

Ben 17 years ago link

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.

gregthe1 17 years ago link

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?

PaulButler 17 years ago * link

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.

gregthe1 17 years ago link

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.

PaulButler 17 years ago link

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.

PaulButler 17 years ago link

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.

gregthe1 17 years ago * link

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.

PaulButler 17 years ago link

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.

gregthe1 17 years ago link

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?

gregthe1 17 years ago link

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/

PaulButler 17 years ago link

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.

PaulButler 17 years ago link

Make that 0.5; I somehow forgot to support PNG in 0.4.

gregthe1 17 years ago link

I’m not seeing 0.5?

PaulButler 17 years ago * link

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.

gregthe1 17 years ago link

Micropledge, is that a bug that I’m not seeing that?

PaulButler 17 years ago link

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.

gregthe1 17 years ago link

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.

gregthe1 17 years ago link

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

Ben 17 years ago * link

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.)

PaulButler 17 years ago link

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.

Markdown formatting help:

Type thisTo get
*italics*italics
**bold**bold
[Brush](http://brush.co.nz/)Brush
* item A
* item B
* item C
  • item A
  • item B
  • item C