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.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
jonw-repo 8fe7f5f6ce Initial commit 1周前
README.MD Initial commit 1周前
image_shot_logo.png Initial commit 1周前
index.html Initial commit 1周前
upload.php Initial commit 1周前

README.MD

Image Shot

Description

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.

Installation

You need a web server running PHP with the ImageMagick extensions installed.

  1. Copy the project files into a web accessible directory.
  2. Create a directory to hold the images. Make sure it is web server read/writeable.

Configuration

  1. Edit the upload.php file:
  2. Change the $target_dir to whatever directory you created in the step above.
  3. Change the $url to the actual web accessible URL for the location you put this code
  4. If desired, change the values in $img_sizes. This will determine how many images you get and what sizes
  5. 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.

Use

  1. Visit your Image Shot installation.
  2. Browse for an image
  3. Enter the salt you chose in the Configuration step
  4. Hit Upload
  5. Profit

Other ideas

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.

TODO

Add Credits (some code was borrowed in the true FOSS tradition) Make resizing smoother