// ================================================
// PHP image browser - imageManager
// ================================================
// imageManager - readme.txt
// ================================================
// Developed: Mihail Cuculici, mihail.cuculici@gmail.com
// Copyright: Mihail Cuculici
// License: GNU GPL - see LICENSE.txt
// (c)2009 All rights reserved.
// ================================================
// Revision: 1.2 Date: 19/06/2012
// ================================================
---------------------------------------------------
- Introduction
---------------------------------------------------
imageManager is an image gallery application that allows you to manage the image files on your webserver.
You can download, upload, rename, resize, rotate and delete images from a given directory.
Also, you have the possibility to view the gallery in various formats, like List View, Thumbnail
View or Filmstrip View.
---------------------------------------------------
- Installation
---------------------------------------------------
imageManager has been confirmed to work with the latest version of
Microsoft Internet Explorer and Firefox.
1. Into your webserver root directory, unzip the "imageManager" arhive.
2. Configuration
---------------------------------------------------
imageManager is already configured and ready to work. All you have to do is restart your webserver
,open your favourite brwser, and type "http://127.0.0.1/imageManager/" in the location bar.
You will see a live example of imageManager at work.
3. Personal config
---------------------------------------------------
You can also configure the size of thumbnails, number of thumbnails per row and much more.
All you have to do is edit the 'config.php' file, located in the 'config/' folder.
Example:
- to set the number of thumbnails per row(in thumbnail view mode), just edit line 21 :
define(ROW_NR, 4);
- if you want the thumbnail size larger(for filmstrip and thumbnail wiew), just edit line 24 :
define(WIDTH, 100);
- to edit the preview thumbnail size(for filmstrip and list mode), just edit line 27
define(WIDTH_L, 500);
- if you want to set the default viewing mode to thumbnail, just edit line 30
like this:
define(VIEW, 0);
// thumbnail view : 0
// list view : 1
// filmstrip view : 2
- you can set the uploaded pictures width and height (default 640x480) - lines 39 and 42 :
define(UP_width, '640');
define(UP_height, '480');
- maximum upload size(in bytes) - line 42 :
define(UP_size, '1500000');
- uploaded images text - line 45 :
define(UP_text, "Sample text");
------------------------------------------------------------------------------------------------------------
EXTRA
------------------------------------------------------------------------------------------------------------
I have also included 2 usefull files that you can edit or use anyway you want.
- class.ErrorHandler.php
is a usefull class, especially in debugging phase.
It keeps track of each error, and shows usefull information about each error type.
If you want to use it, you will also need the 'config.php' file and from the
'format.css' file, you need to copy and paste into your own cascading stylesheet
file the '.error_box' class definition.
- class.DOC.php
is also a usefull class, which you can use anywhere you want.
You can see an example of how to use it in the 'index.php' file.
------------------------------------------------------------------------------------------------------------
4. Mix with other PHP-based websites
---------------------------------------------------
To include imageManager on your website, all you have to do is to add the following line to your PHP script:
include 'pictManager2.php';
For a working example, see 'index.php' or 'test.php';
The frst example includes the 'class.DOC.php' file, which makes it's source easier to understand.
------------------------------------------------------------------------------------------------------------
5. Updates & bugFixes
---------------------------------------------------
Added support for bmp images (.bmp extension)
PNG thumbnail generator fix
Updated file upload and first preview (thumb)
------------------------------------------------------------------------------------------------------------
_____________________________________________________________________________________________
| |
| Thank you for downloading imageManager v.1.2 |
| |
| For more details on how to use imageManager, please contact me: |
| mihai.cuculici@gmail.com |
| mihai.cuculici@yahoo.com |
| |
_____________________________________________________________________________________________