pfp cropping #12

Merged
twig merged 11 commits from pfp-cropping into main 2025-07-05 17:34:28 +00:00
Owner

image cropping!!!!

this does use an npm module, cropperjs, but i think it's an alright import for what it does.

this does NOT support animated pngs, or gifs, due to a library limitation.

it also converts every image you upload into a png on the fly, so technically you can upload webp and svg files now.

image cropping!!!! this does use an npm module, cropperjs, but i think it's an alright import for what it does. this does NOT support animated pngs, or gifs, due to a library limitation. it also converts every image you upload into a png on the fly, so technically you can upload webp and svg files now.
twig added the
Kind/Feature
label 2025-07-04 08:13:49 +00:00
sauceyred was assigned by twig 2025-07-04 08:13:49 +00:00
twig added 8 commits 2025-07-04 08:13:49 +00:00
feat: display proper error messages when the client fails to update profile info
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
3c5525d294
feat: start implementing image cropping when uploading pfp
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
3c4965c06f
still need to fix the selection to within the canvas boundries, and fix theming
not sure why i can't resize it though, will probably just "click" later
feat: ensure there's a background colour for the user popup's avatar
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
181fcd04db
refactor: move stuff from profile to within the crop popup itself
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
d9c6faa6ab
refactor: move yet more stuff into the popup component
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
33dbcb5861
twig added 1 commit 2025-07-04 08:17:31 +00:00
fix: minor polish
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
e9717b137e
sauceyred was unassigned by twig 2025-07-05 17:20:54 +00:00
requested review from sauceyred 2025-07-05 17:20:59 +00:00
sauceyred requested changes 2025-07-05 17:28:02 +00:00
Dismissed
@ -0,0 +2,4 @@
<div id="fullscreen-container">
<div id="crop-preview">
<img ref="image" :src="imageSrc" style="min-height: 500px;">
<Button class="button" text="Crop" :callback="cropImage"></Button>
Owner

Button component already sets class to "button"

Button component already sets class to "button"
@ -0,0 +3,4 @@
<div id="crop-preview">
<img ref="image" :src="imageSrc" style="min-height: 500px;">
<Button class="button" text="Crop" :callback="cropImage"></Button>
<Button class="button" text="Cancel" :callback="closePopup"></Button>
Owner

Button component already sets class to "button"

Button component already sets class to "button"
@ -27,3 +34,4 @@
<script lang="ts" setup>
import Button from '~/components/Button.vue';
import CropPopup from '~/components/CropPopup.vue';
Owner

Not needed

Not needed
@ -38,2 +47,4 @@
let newPfpFile: File;
const isCropPopupVisible = ref(false);
const cropImageSrc = ref('');
Owner

Use double quotes

Use double quotes
sauceyred reviewed 2025-07-05 17:28:26 +00:00
@ -0,0 +1,94 @@
<template>
<div id="fullscreen-container">
<div id="crop-preview">
<img ref="image" :src="imageSrc" style="min-height: 500px;">
Owner

Don't use px for min-height

Don't use px for min-height
twig added 2 commits 2025-07-05 17:32:43 +00:00
fix: minor changes to fix review
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful
825cf2ba52
requested review from sauceyred 2025-07-05 17:32:44 +00:00
sauceyred approved these changes 2025-07-05 17:34:16 +00:00
sauceyred left a comment
Owner

Looks good. Approved for merge.

Looks good. Approved for merge.
twig merged commit 519a5555a9 into main 2025-07-05 17:34:28 +00:00
twig deleted branch pfp-cropping 2025-07-05 17:34:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gorb/frontend#12
No description provided.