Images Manager
Loading...
Image Manager Manual
x1. Upload & Compress Image
This is the main section for uploading new images.
- Choose image / Paste URL: You can either select a file from your computer or paste a direct URL to an image.
- Folder name: Specify the folder where you want to save the processed image. The default is 'file'. If the folder doesn't exist, it will be created.
- File name: You can give the new image a custom name. Leaving this blank will use the original file name.
- Type (resize / avatar): Select a size preset for the new image:
- avatar (200x200 crop): Resizes the image to a 200x200 square.
- small (max 500): Resizes the largest dimension to a maximum of 500 pixels.
- medium (max 900): Resizes the largest dimension to a maximum of 900 pixels.
- large (max 1300): Resizes the largest dimension to a maximum of 1300 pixels.
- none (no resize): The image will not be resized.
- Save Mode:
- return (image base64): The processed image will not be saved on the server. Instead, a preview and the base64-encoded data will be returned to your browser. You can then copy the data or download the image.
- save (server stores file and returns JSON): The image is saved to the specified folder on the server. The app returns a JSON object with details about the new file.
- Lossless (quality 100): Check this box for no loss in quality, resulting in a larger file size. Unchecked uses a quality setting of 70 for smaller files.
2. Images Manager
This section displays all images currently on the server.
- Folder List: Images are grouped by folder. Click on a folder's header to expand or collapse it.
- Delete Folder: A button is available for each folder to delete it and all its contents permanently.
- Image Actions: Clicking on an image thumbnail opens a modal with options to:
- Copy URL: Copy the image's direct URL.
- Rename: Change the file name.
- Delete: Permanently delete the image.
- Copy Base64: Get the image's base64 data to embed it directly.
3. Configuration
For advanced users, you can edit the PHP configuration variables directly in the compress.php file:
- $MAX_UPLOAD_SIZE: Sets the maximum file size for uploaded images. By default, it is 10 MB.