3
16
Fork
You've already forked lichen
1

Image resize functionality not working properly #1

Closed
opened 2024年01月13日 20:58:10 +01:00 by stringbone · 2 comments

This is an issue that was originally sent to winduptoy, the original maintainer.


today I tried lichen. It was wonderful, thx for making/sharing this to me.

btw, it was a little challenging for me to make 'image resize' work
properly.
so, I want to leave/share a quick note that I had changed to make this work.

here are 2 changes:

283c283
< canvas.height = image.height * ar;
---
> canvas.height = width / ar;
285c285
< ctx.drawImage(image, 0, 0, width, image.height * ar);
---
> ctx.drawImage(image, 0, 0, width, width / ar);
This is an issue that was originally sent to winduptoy, the original maintainer. --- today I tried lichen. It was wonderful, thx for making/sharing this to me. btw, it was a little challenging for me to make 'image resize' work properly. so, I want to leave/share a quick note that I had changed to make this work. here are 2 changes: ``` 283c283 < canvas.height = image.height * ar; --- > canvas.height = width / ar; 285c285 < ctx.drawImage(image, 0, 0, width, image.height * ar); --- > ctx.drawImage(image, 0, 0, width, width / ar); ```
Author
Owner
Copy link

Need to determine what the issue was before I can really solve it

Need to determine _what_ the issue was before I can really solve it
Author
Owner
Copy link

When uploading a large image, it will resize only the width currently, but not the height. This fixes it so that it resizes all the proper dimensions.

When uploading a large image, it will resize only the width currently, but not the height. This fixes it so that it resizes all the proper dimensions.
Sign in to join this conversation.
master
master
40/summary
mobile
v2.2.1
v2.2.0
v2.1.2
v2.1.1
v2.1.0
v2.0.14
v2.0.13
v2.0.12
v2.0.11
v2.0.10
v2.0.9
v2.0.8
v2.0.7
v2.0.6
v2.0.5
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
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
stringbone/lichen#1
Reference in a new issue
stringbone/lichen
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?