Skip to content

Commit 3e0f5b9

Browse files
committed
Fix menuIconTint build error, set tint programmatically, update README
1 parent 6911abc commit 3e0f5b9

3 files changed

Lines changed: 27 additions & 25 deletions

File tree

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,42 @@ A typical camera roll of **10 GB** can be reduced to around **1 GB** using WebP
1212

1313
## Features
1414

15+
### Photo Viewer (Main Screen)
16+
- Browse any folder on your device as a photo gallery
17+
- Navigate subfolders with a visual breadcrumb bar
18+
- Folder image counts shown at a glance
19+
- Full-screen image viewer with swipe between photos
20+
- **Delete** photos directly from the viewer (with confirmation)
21+
- **Rotate** photos 90° (rotation is saved to file)
22+
- Folder listing cached for instant navigation on revisits
23+
- Dark mode support
24+
25+
### Photo Compressor (Settings Screen)
1526
- Converts JPG/JPEG and PNG files to WebP format
16-
- PNG images are compressed losslessly
1727
- JPG images compressed with configurable quality (default 65)
1828
- Max resolution cap (default 1280px) to resize oversized photos
1929
- Preserves EXIF rotation data
20-
- Skips files already in WebP format
2130
- Skips files already compressed (idempotent)
2231
- Deletes originals only after successful compression
23-
- Moves compressed files from a temp folder to a final destination
32+
- Temp files stored in app-internal cache (hidden from file managers)
2433
- Runs as a foreground service with notification (won't be killed mid-compression)
25-
- Remembers your folder settings between sessions
34+
- Remembers all folder settings between sessions
2635

2736
## How it works
2837

29-
1. **Select three folders** using Android's folder picker:
30-
- **Source** — folder containing photos to compress, tipically camera folder (e.g. `DCIM/Camera`)
31-
- **Temp** — where compressed WebP files are written first (just create one somewhere)
32-
- **Final** — where files are moved after successful compression (your compressed gallery folder)
38+
1. **Set a gallery root folder** — choose any folder to browse as a photo gallery (this is the main screen)
3339

34-
2. **Adjust settings** (optional):
40+
2. **In Settings, select compression folders:**
41+
- **Source** — folder containing photos to compress, typically camera folder (e.g. `DCIM/Camera`)
42+
- **Final** — where compressed files are moved after successful compression
43+
44+
3. **Adjust settings** (optional):
3545
- Quality: 1–100 (default 65 — good balance of size and quality)
3646
- Max resolution: largest dimension in pixels (default 1280)
3747

38-
3. **Tap Start** — the app processes all images in the background, showing progress in a notification.
48+
4. **Tap Start** — the app processes all images in the background, showing progress in a notification.
3949

40-
4. **Originals are deleted** only after the compressed file is successfully written, so you never lose photos.
50+
5. **Originals are deleted** only after the compressed file is successfully written, so you never lose photos.
4151

4252
## Install
4353

@@ -47,18 +57,6 @@ Download the latest APK from the [Releases](https://github.com/adegard/ImageComp
4757

4858
The app needs access to your photo folders. When you tap "Select", Android will ask you to grant access to that directory. This is normal — the app uses Android's Storage Access Framework (SAF) and never reads anything outside the folders you choose.
4959

50-
## Recommended Gallery App
51-
52-
For browsing WebP files from your compressed folder on Android, use **Gallery** from [Simple Mobile Tools](https://github.com/SimpleMobileTools/Simple-Gallery)
53-
54-
- Open source (Simple Mobile Tools)
55-
- Full WebP support
56-
- No ads, no tracking, no subscriptions
57-
- Clean Material Design interface
58-
59-
Install from github
60-
https://github.com/SimpleMobileTools/Simple-Gallery
61-
6260
## License
6361

6462
MIT

app/src/main/java/com/degard/imagecompressor/MainActivity.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.degard.imagecompressor
22

33
import android.content.Intent
4+
import android.graphics.Color
45
import android.net.Uri
56
import android.os.Bundle
67
import android.view.View
@@ -33,6 +34,10 @@ class MainActivity : AppCompatActivity() {
3334
binding.rvGallery.layoutManager = GridLayoutManager(this, 3)
3435
binding.rvGallery.adapter = adapter
3536

37+
binding.toolbar.overflowIcon?.setTint(
38+
MaterialColors.getColor(this, com.google.android.material.R.attr.colorControlNormal, Color.BLACK)
39+
)
40+
3641
binding.toolbar.setOnMenuItemClickListener { item ->
3742
if (item.itemId == R.id.action_settings) {
3843
startActivity(Intent(this, SettingsActivity::class.java))

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
android:layout_width="match_parent"
1212
android:layout_height="?attr/actionBarSize"
1313
app:title="@string/app_name"
14-
app:menu="@menu/menu_main"
15-
app:menuIconTint="?attr/colorControlNormal" />
14+
app:menu="@menu/menu_main" />
1615

1716
<HorizontalScrollView
1817
android:id="@+id/breadcrumbScroll"

0 commit comments

Comments
 (0)