Simpic

First, I wanted to set up a private image hosting service. After searching online for a long time, I couldn't find a suitable application. The better options were Chevereto and ImgURL, but the upload paths used by both applications weren't to my liking, so I abandoned them.

What I wanted was an upload mode like SM.MS. I initially planned to write one myself, but later happened to discover Lsky Image Hosting on Gitee. I found that it suited my preferences very well, so I modified it and finally made it look the way I wanted. After checking Lsky Image Hosting's open-source license, I found that open-source distribution was permitted, and thus Simpic was born.

Features

  • Upload paths modeled after SM.MS
  • Latest Layui framework
  • Homepage modeled after SM.MS
  • Supports uploads to Qiniu Cloud and Upyun
  • Upload images by dragging and dropping directly
  • Separate management for multiple users
  • Image stream loading in the user center
  • Supports multiple image uploads

Original application (seemingly no longer maintained)

Frontend demo

Backend demo

Installation requirements

  • PHP version > 5.3
  • Curl support
  • Mysqli support
  • Rewrite

Installation guide

Note: Virtual hosts are not currently supported, and the database must use the InnoDB engine.

  1. Download the application, upload it to a web runtime environment, and extract it.
  2. Set the runtime directory to /public

![]1

  1. Configure the Rewrite rules:

Apache

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>

Nginx

location / {
  if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?s=$1 last; break;
  }
}
  1. Visit the homepage. If the application is not installed, it will automatically redirect to the installation page; simply follow the instructions on the page to complete the installation.