Skip to content

βœ‚οΈ 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
Image Edit Modal

πŸ“ 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

  1. Upload or drag an image file
  2. The crop modal opens with the appropriate preset
  3. Adjust the crop area, zoom, rotation as needed
  4. Preview the result in real-time
  5. Click Upload to confirm β€” the cropped image is saved to the server
  6. 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.