0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-18 01:24:26 -05:00
immich/web
Mangat Singh Toor | ਮੰਗਤ ਸਿੰਘ ਤੂਰ b1f05fc18b
fix(web): properly project profile picture (#16095)
* fix(profile-image-cropper): ensure correct image area is saved after transparency check

Fixed an issue where users could not set a profile picture due to incorrect transparency detection.
After addressing transparency detection by passing explicit dimensions, another issue arose where the
generated blob did not represent the correct cropped image area. To fix this, a new cropped blob was generated using the canvas that was used to check for transparent pixels.

- Pass image width and height explicitly to `hasTransparentPixels` for accurate processing.
- Return both transparency status and the correctly cropped image blob.
- Ensure the final uploaded image is taken from `croppedImageBlob` to reflect user adjustments.

* chore: run pr web checklist. No issues in the changed file.

* fix(profile-image-cropper): ensure correct image area is saved after transparency check

Fixed an issue where users could not set a profile picture due to incorrect transparency detection.
To fix this, a new cropped blob was generated using the height and width of the imgElement.

Note: this is a simpler fix than the one in the previous commit.

* lint

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2025-02-14 15:49:22 +00:00
..
bin
src fix(web): properly project profile picture (#16095) 2025-02-14 15:49:22 +00:00
static feat(web): neon light behinds login form (#15570) 2025-01-23 17:23:23 -05:00
.dockerignore
.gitignore
.npmrc
.nvmrc chore(deps): update node.js to v22.13.1 (#15503) 2025-01-21 16:16:46 -06:00
.prettierignore
.prettierrc
Dockerfile chore(deps): update node (#15554) 2025-01-23 08:32:14 -05:00
eslint.config.mjs refactor: auth pages (#15328) 2025-01-14 08:14:28 -06:00
package-lock.json chore(deps): update dependency svelte to v5.19.9 (#16043) 2025-02-11 17:24:39 -06:00
package.json fix(deps): update typescript-projects (#16023) 2025-02-11 18:50:18 +00:00
postcss.config.cjs
README.md fix(web): Updated web README.md (#12899) 2024-09-25 12:59:35 +00:00
svelte.config.js chore(web): move enum out of .svelte file (#14144) 2024-11-14 15:41:11 +00:00
tailwind.config.js refactor: migrate create user form to immich ui (#15350) 2025-01-15 15:09:19 -05:00
tsconfig.json refactor(web): folders store (#14305) 2024-11-23 13:22:13 -06:00
vite.config.js feat(web): immich-ui components (#14263) 2025-01-14 14:53:33 -05:00

Immich web project

This project uses the SvelteKit web framework. Please refer to the SvelteKit docs for information on getting started as a contributor to this project. In particular, it will help you navigate the project's code if you understand the basics of SvelteKit routing.

When developing locally, you will run a SvelteKit Node.js server. When this project is deployed to production, it is built as a SPA and deployed as part of the server project.