diff --git a/src/components/imagecrop/WidgetImageCrop.vue b/src/components/imagecrop/WidgetImageCrop.vue
index d093ddad27..86e799a959 100644
--- a/src/components/imagecrop/WidgetImageCrop.vue
+++ b/src/components/imagecrop/WidgetImageCrop.vue
@@ -28,7 +28,7 @@
:src="imageUrl"
:alt="$t('imageCrop.cropPreviewAlt')"
draggable="false"
- class="block size-full object-contain select-none brightness-50"
+ class="block size-full object-contain select-none"
@load="handleImageLoad"
@error="handleImageError"
@dragstart.prevent
@@ -36,14 +36,12 @@
+ />
{
- if (!imageUrl.value) return {}
-
- return {
- backgroundImage: `url(${imageUrl.value})`,
- backgroundSize: `${displayedWidth.value}px ${displayedHeight.value}px`,
- backgroundPosition: `-${cropX.value * scaleFactor.value}px -${cropY.value * scaleFactor.value}px`,
- backgroundRepeat: 'no-repeat'
- }
- })
-
interface ResizeHandle {
direction: ResizeDirection
class: string
@@ -605,7 +594,6 @@ export function useImageCrop(nodeId: NodeId, options: UseImageCropOptions) {
isLockEnabled,
cropBoxStyle,
- cropImageStyle,
resizeHandles,
handleImageLoad,