Media Gallery app for Android made with Jetpack Compose
  • Kotlin 94.4%
  • MDX 1.7%
  • JavaScript 1.1%
  • Astro 0.9%
  • C 0.5%
  • Other 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
IacobIonut01 d7bcd39940 Add circle and rounded square crop shapes to the photo editor
The photo editor's crop tool only produced rectangles, and users asked
for circular crops (profile pictures, stickers). Circle and Rounded
square are now offered in the crop aspect menu, below the ratios.

- The shape is part of the recipe: PhotoGeometry gains a shape
  (PhotoCropShape), stored in projects only when it is not a rectangle,
  so older projects read back unchanged.
- The retouch stage clips the finished output to the shape as its last
  step, in absolute output coordinates, so the preview, the banded
  export and zone renders agree. A shaped crop keeps the preview on the
  CPU path, since the shader preview does not run that stage.
- Both shaped presets lock the frame to 1:1 and set the shape in one
  undo step; any other preset returns to a rectangle. The menu label
  follows the recipe after undo or redo, and a remembered shape is never
  reapplied when the tool opens on an untouched photo.
- While cropping, the canvas dims the corners outside the shape and
  traces its outline; crop preview mode leaves the shape out so the
  whole source stays visible behind the frame.
- Transparent results (a shaped crop or a removed background) bound for
  a container without alpha now ask for PNG or WebP in a "Keep
  transparency" sheet before saving. PhotoInfo records whether the
  source keeps alpha, so a PNG source still saves in place, and the
  session falls back to PNG if a caller skips the question. WebP now
  keeps alpha for removed backgrounds as well.
- The crop and saving docs pages describe the shapes and the new
  format choice.

Verification:
- :editor:ui:desktopTest --tests EditorGeometryTest (20/20) and the new
  CropToolUiTest cases (circle locks 1:1, undo restores the strip,
  shaped JPEG save asks and writes PNG)
- :editor:render:desktopTest --tests PhotoRetouchTest (14/14) and
  :editor:core:desktopTest --tests PhotoProjectCodecTest (9/9)
- :app:androidApp:compileArm64-v8aNoMLStagingKotlin and
  installArm64-v8aNoMLStaging; on the Pixel 6 a circle crop of a JPEG
  showed the mask preview, asked for a format and saved a 960x960 RGBA
  WebP with transparent corners
- website npm run build; check-style passes; git diff --check clean

Fixes #1481
2026-11-22 18:17:30 +02:00
.github Stop the viewer crashing below Android 13 on the map tile URL 2026-11-19 19:13:24 +02:00
app Document album cover labels and one-gesture search back 2026-11-22 18:17:21 +02:00
editor Add circle and rounded square crop shapes to the photo editor 2026-11-22 18:17:30 +02:00
fastlane/metadata/android/en-US ReFra 5.2.2 Release 2026-10-04 19:20:51 +03:00
gradle Stop the viewer crashing below Android 13 on the map tile URL 2026-11-19 19:13:24 +02:00
kotlin-js-store/wasm refactor: Initial Kotlin Multiplatform Migration 2026-10-08 01:07:28 +03:00
ml-models/src/main/assets fix(ml): keep CLIP models at the legacy raw download path 2026-10-18 17:59:39 +03:00
plugins Resolve Gradle plugins for the included plugins build 2026-10-25 17:13:58 +02:00
screenshots docs: add Obtainium download badge 2026-09-02 11:59:53 +03:00
scripts Read and search the text in photos on the device 2026-11-10 16:39:10 +02:00
website Add circle and rounded square crop shapes to the photo editor 2026-11-22 18:17:30 +02:00
.gitattributes Read and search the text in photos on the device 2026-11-10 16:39:10 +02:00
.gitignore Upgrade the build to Gradle 9.6 and AGP 9.5 2026-11-08 12:08:58 +02:00
app.properties Embed the CARTO basemap key so F-Droid reproducible builds pass 2026-11-08 15:23:53 +02:00
build.gradle.kts Stop the viewer crashing below Android 13 on the map tile URL 2026-11-19 19:13:24 +02:00
crowdin.yml Fix unsupported escapes in Compose resources and Crowdin config 2026-11-08 12:10:20 +02:00
gradle.properties refactor: Initial Kotlin Multiplatform Migration 2026-10-08 01:07:28 +03:00
gradlew feat: pivot to single-pass MobileSAM and redesign cutout UI 2026-06-24 13:33:43 +02:00
gradlew.bat Update dependency gradle to v8.10 (#375) 2024-09-02 12:37:20 +03:00
LICENSE Gallery: Add LICENSE file 2023-04-10 13:15:40 +03:00
README.md docs: add Obtainium download badge 2026-09-02 11:59:53 +03:00
renovate.json Add Renovate support 2023-06-30 10:10:23 +03:00
settings.gradle.kts Add the standalone ReFra photo and video editor 2026-11-08 12:11:45 +02:00
stability_config.conf fix: resolve deprecation and lint warnings 2026-04-13 01:19:46 +03:00

ReFra

An Android Gallery app built with Jetpack Compose.

The goal of this project is to create and bring the Gallery app everyone wants, with the features everyone needs. FOSS

Downloads CI License Crowdin GitHub Repo stars

Crowdin Community

Download

Get it on F-Droid Get it on Google Play Get it on GitHub Get it on Obtainium

Support

  • Translate the project using the link from above
  • Donations:
    • Use the links on the right side of the repo (Sponsor me)
    • More options available in-app (Settings -> Donate)

Frequent Questions

  • Why 'ReFra'?
    • Refra is a short form of 'refraction', which is the bending of light when it passes through different mediums. This app aims to refract our perception of media files, making them more accessible and easier to manage.
  • What is the offline variant?
    • The offline variant is a version of the app with all online features removed — maps, cloud provider support (Immich, ownCloud, etc.), and any functionality that requires an internet connection, even on a local network. This is useful for users who want a fully self-contained gallery with no network permissions.
  • Why Google Play version is 'Paid'?
    • It's just another way to support the project while getting back automatic updates via Google Play
  • Why Android 11 is the minimum version required?
    • Some Media features and APIs require Android 11 as a minimum version [Trash feature, most APIs used in the app]
  • Will you support lower android versions?
    • While this is not a priority right now, I do have in mind to include support for lower Android versions at a cost of reduced features. If anyone volntueers to do so before me can request a pull request.
  • Can I verify the downloaded APK file?
    • Checksums of APKs are provided in the release notes. The signing certificate fingerprint is listed below:
      • SHA-256: 78:46:05:DD:50:75:BE:05:82:78:A5:42:5C:BD:E5:21:31:62:CB:B4:59:1B:44:28:F4:4E:75:E0:8C:C6:43:8A
      • SHA-1: AD:93:69:27:F2:3B:33:99:FC:C0:B2:8A:25:44:C8:1C:AA:42:B0:9A
      • MD5: 73:FC:3C:60:14:D3:69:6D:1B:DA:34:F1:BF:5A:33:3C
  • Will you add [X] feature?
    • Please open a new feature request under 'Issues' tab and if the feature will be considered useful and possible can be added.
  • Can you remove permission [X]?
    • Several permissions (e.g. Internet connectivity, location) are for showing a map preview of your current photo location data. If you do not need this feature, you can download an offline release from the Releases page.