Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(web): added image cropping to avatar uploads#185

Merged
hjball merged 4 commits intokanbn:mainfrom
nahSystemu:feat/avatar-cropping
Sep 19, 2025
Merged

feat(web): added image cropping to avatar uploads#185
hjball merged 4 commits intokanbn:mainfrom
nahSystemu:feat/avatar-cropping

Conversation

@nahSystemu
Copy link
Contributor

The issue:
image

After realizing their is an issue with users uploading avatars that aren't square, with a 1:1 ratio I remembered that I seen an image crop component when I was researching a project for myself.

https://github.com/sujjeee/shadcn-image-cropper/blob/main/src/components/image-cropper.tsx
Used this as reference

After a while of struggling with understanding how the project is structured and setup for local development, I got this working on my local environment with minIO for S3.

Here is a preview of it working as intended, but do check if everything suffices and there aren't any edge cases that would break something.

2025-09-19.17-14-46.mp4

@hjball
Copy link
Contributor

hjball commented Sep 19, 2025

Great work @nahSystemu

@hjball hjball merged commit 7ccd2ac into kanbn:main Sep 19, 2025
@nahSystemu nahSystemu deleted the feat/avatar-cropping branch September 25, 2025 16:39
mochimwaji pushed a commit to mochimwaji/kan that referenced this pull request Dec 16, 2025
* feat(web): added image cropping to avatar uploads

* chore: add translations

* refactor: move react crop css import to avatar component

* refactor: remove duplicate interface

---------

Co-authored-by: Henry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments