Image Shot is quick, dirty, and simple internet image hosting script. It is not a gallery which means you won't upload an image and then be able to show it to others in your Image Shot gallery. Image Shot simply takes an image from you, resizes it in as may ways as you want, and then spits back both an HTML and a Markdown link for you to copy and paste somewhere else such as a blog post.
You need a web server running PHP with the ImageMagick extensions installed.
- Copy the project files into a web accessible directory.
- Create a directory to hold the images. Make sure it is web server read/writeable.
- Edit the upload.php file:
- Change the $target_dir to whatever directory you created in the step above.
- Change the $url to the actual web accessible URL for the location you put this code
- If desired, change the values in $img_sizes. This will determine how many images you get and what sizes
- Create a file named salt outside your web accessible directories. This code assumes it is two directories up (line 12). Put the password you'd like to use in this file.
- Visit your Image Shot installation.
- Browse for an image
- Enter the salt you chose in the Configuration step
- Hit Upload
My installation also sends the image links to me in Slack. If you want to do something like that, add the necessary code around the print statements in lines 72-ish.
Add Credits (some code was borrowed in the true FOSS tradition)
Make resizing smoother