βοΈ Image Crop Tool
LibreFolio includes a powerful interactive image editing tool that lets you crop, rotate, and resize images before uploading them.
π― When Does It Appear?
The Image Crop modal opens automatically whenever you upload an image file in LibreFolio:
- π Files page β uploading any image (JPEG, PNG, WebP, GIF)
- π€ Profile settings β changing your avatar
- π¦ Broker settings β changing a broker icon
π Presets
The tool offers presets for common use cases:
| Preset | Size | Aspect Ratio | Use Case |
|---|---|---|---|
| Avatar | 200 Γ 200 px | 1:1 (square) | User profile pictures |
| Broker Icon | 64 Γ 64 px | 1:1 (square) | Broker logos |
| Custom | Free | Free | Any size and ratio |
The preset automatically sets the aspect ratio constraint and output size.
ποΈ Controls
βοΈ Crop Area
- π Drag the corners to resize the crop area
- βοΈ Drag inside the area to move it
- π The crop area is clamped to the image bounds β you can't select outside the image
π Zoom
- π±οΈ Mouse wheel or pinch (on touch devices) to zoom in/out
- β Zoom buttons (+/β) for precise control
- π― Zooming centers on the crop selection
π Rotation
- π Rotate buttons (βΊ/β») rotate in 15Β° steps
- π Rotation happens relative to the selection center
πͺ Flip
- βοΈ Flip Horizontal (β) β mirrors the image left-right
- βοΈ Flip Vertical (β) β mirrors the image top-bottom
βοΈ Output Settings
Before confirming, you can adjust:
- π¨ Output format: PNG (lossless, transparency), JPEG (smaller, no transparency), WebP (modern, best compression)
- π Quality (JPEG/WebP only): Slider from 10% to 100% β lower quality = smaller file
- π Output size: Width and height in pixels (linked to the preset, but editable)
Ellipse Preview
For avatar and icon presets, a circular ellipse overlay is shown on the crop area. This helps you preview how the image will look in a circular frame (e.g., user avatars in the navigation bar).
π Workflow
- Upload or drag an image file
- The crop modal opens with the appropriate preset
- Adjust the crop area, zoom, rotation as needed
- Preview the result in real-time
- Click Upload to confirm β the cropped image is saved to the server
- Click Cancel or close the modal to discard changes
Non-image files
If you upload a non-image file (PDF, CSV, etc.), the crop modal is skipped. Instead, a simple rename dialog appears.