Simple, fast and secure archive for images

Overview

Slim Image Archive

Simple*, fast and secure archive for images:

  • Create multiple categories with multiple albums with multiple images!
  • Manage multiple users with different privileges!
  • Easily navigate between all those things!
  • Protect your photos from the NSA! (not really)

The purpose of this project was for internal use of a company, so no big effort went into the presentation - it's simple and clean bootstrap ready for further improvements.

(*) I won't argue if you'll say that this code is an overkill.

Slim Image Archive Slim Image Archive

Dependencies

and a slug method taken from:

Installation
  • git clone https://github.com/ksdev-pl/Slim-Image-Archive.git
  • composer install
  • Import slim-image-archive.sql to your database
  • Configure your database connection in /app/app.php lines 60-63
  • Point web root to /public folder, the rest should be protected
  • Add write privileges to /tmp folder (with subfolders)
  • Sign in with email: [email protected] and password: admin
  • Create new user with admin privileges and delete default account
Things to know
  • If you wish to change allowed types of files that user can upload, update $mimeTypes in Image model, and both .htaccess files under /files folder and its /thumbs subfolder
  • In /app/views/image/create.html.twig you can change maxFileSize option for upload script
  • Exception logs are stored in /tmp/logs
  • User roles and corresponding privileges:
    • Normal - upload only
    • Extended - upload, edit & delete
    • Admin - manage users
License

Slim Image Archive is released under the MIT license.

You might also like...
The image server plugin allows you to add responsive images via config without extra elements

Grav image server plugin adds picture tag with loading, responsive, high density images

Create beautiful generative background images from a string. Based on jasonlong/geo_pattern

GeoPattern This is a PHP port of jasonlong/geo_pattern. Generate beautiful tiling SVG patterns from a string. The string is converted into a SHA and a

Contao extension to provide the possibility of defining alternative images to be used on different output devices.
Contao extension to provide the possibility of defining alternative images to be used on different output devices.

Contao Image Alternatives This extensions expands the capabilities of using responsive images with art direction in Contao. You will have the possibil

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

NO LONGER MAINTAINED!!! Image Cache v. 1.0.0 Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file,

Laragram is a simple instagram
Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS

Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS that gives to the users the ability to create or edit their own profiles (including profile image and description), upload images and share them among friends

A simple page view counter that store data as text and shows data as a PNG image

Image Counter A simple page view counter that store data as text and shows the counter as a PNG image.

🤹‍♀️Very simple to use Gravatar implementation for Laravel
🤹‍♀️Very simple to use Gravatar implementation for Laravel

Very simple to use Gravatar implementation for Laravel. Install, Include the Facade and then generate, simple! Installation You can install the packag

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.

Image Optimizer This library is handy and very easy to use optimizer for image files. It uses optipng, pngquant, jpegoptim, svgo and few more librarie

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

Lychee A great looking and easy-to-use photo-management-system. Since the 1st of April 2018 this project has moved to it's own Organisation (https://g

Comments
  • Please provide Database connection example

    Please provide Database connection example

    Good Day

    this is a amazing project, and i cannot test it yet, i try use this to configure db, i think i miss something

    $app->container->singleton('db', function () {
                return new PDO('mysql:host=localhost;port=8889;dbname=images', 'user', 'password');
            });
    

    but i get a blank page, then when i try to see log files..

    [28-Sep-2014 22:07:14 America/Bogota] PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /Applications/MAMP/htdocs/Slim-Image-Archive/app/app.php on line 61
    [28-Sep-2014 22:07:14 America/Bogota] PHP Stack trace:
    [28-Sep-2014 22:07:14 America/Bogota] PHP   1. {main}() /Applications/MAMP/htdocs/Slim-Image-Archive/public/index.php:0
    

    also i got error 500 on the browser..

    screen shot 2014-09-28 at 10 19 37 pm

    i really appreciate any help

    opened by carlos-andres 2
  • Fixed the issue of could not update user role on the Manage Users page.

    Fixed the issue of could not update user role on the Manage Users page.

    I found a issue of we colud not update user role on the "Manage Users" page. It seems we can fix it with using setRole instead of getRole in the function update of UserController.php. I'm happy if the fix could be useful.

    opened by nobuh 1
  • Point web root to /public folder, the rest should be protected

    Point web root to /public folder, the rest should be protected

    Hi,

    First of all, great job on this app. I really need something like this.

    I can't get the project up and runing because I'm unable to point the web root to the /public folder.

    I added an .htaccess file in the root dir with: RewriteEngine On RewriteBase /mpl/mh/votacoes2/ RewriteCond %{REQUEST_URI} !public/ RewriteRule (.*) public/$1 [L]

    But I always get redirected to http://localhost/dashboard/ instead of http://localhost/mpl/mh/votacoes2

    Can you please enlighten me? Thanks

    opened by mjpramos 1
Owner
KS
KS
The Tinify API allows you to compress and optimize WebP, JPEG and PNG images.

The Tinify API allows you to compress and optimize WebP, JPEG and PNG images. It is designed as a REST service. The client libraries in various languages make it very easy to interact with the Tinify API.

Devscast 10 May 13, 2022
A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API.

A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API. This enables you to build cool little tricks, like showing your latest followers or sponsors, latest content creted, a qrcode to something, a progress bar for some goal, and whathever you can think of.

Erika Heidi 172 Jan 5, 2023
PHP library to resize, scale and crop images.

PHP library to resize, scale and crop images.

Gumlet 1.1k Jan 3, 2023
ImageWorkshop is a PHP5.3+ library that helps you to manage images based on GD library

================================ ImageWorkshop class ================================ Summary and features Really flexible and easy-to-use PHP class t

Clément Guillemain 853 Dec 27, 2022
GifCreator is a PHP class that creates animated GIF from multiple images

================================ GifCreator ================================ GifCreator is a PHP class to create animated GIF from multiple images For

Clément Guillemain 320 Dec 15, 2022
Create images with embedded text using advanced typography

Image with Text This class makes it super easy to render images with multiple, independently styled text blocks. You can control each text block's ali

New Media Campaigns 144 Sep 7, 2022
Easily convert images with Glide

Easily convert images with Glide This package provides an easy to use class to manipulate images. Under the hood it leverages Glide to perform the man

Spatie 374 Dec 30, 2022
Optimize your images on the fly with Glide for Laravel.

Glide for Laravel Optimize your images on the fly with Glide for Laravel. Support us Like our work? You can support us by purchasing one of our produc

Flowframe 53 Oct 17, 2022
Upload SVG images in Magento 2.x

Upload SVG images in Magento 2.x This extension for Magento 2 allows uploading SVG images in the following sections: wysiwyg editor in static blocks a

Magegadgets 6 Dec 23, 2022
Inline Images Protocol implementation for PHP.

Imgecho Echo the image on iTerm App using Inline Images Protocol. Installation Use Composer to install. composer require mileschou/imgecho Usage Use

MilesChou 4 May 30, 2022