[GH-ISSUE #6053] [Bug]: Attached images in chat are compressed and lose aspect ratio #3358

Closed
opened 2026-10-21 06:02:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @scavru on GitHub (Sep 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6053

Originally assigned to: @Romuromylus on GitHub.

Summary

When attaching or uploading an image directly into the chat session, the image preview and payload are stretched horizontally, completely losing their original aspect ratio.

Steps to reproduce

  1. Open any chat session (Conversation, Roleplay, or Game Mode).
  2. Click on the attachment button to upload an image.
  3. Select any image with non-square proportions.
  4. Observe the chat window preview. The image appears distorted and squeezed.

Expected behavior

The uploaded image should retain its original aspect ratio, using standard CSS properties like object-fit: contain to prevent visual distortion.

Actual behavior

The image is hard-stretched horizontally to fit the container.

Environment

  • Marinara Engine version: [last stagging]
Originally created by @scavru on GitHub (Sep 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6053 Originally assigned to: @Romuromylus on GitHub. ### Summary When attaching or uploading an image directly into the chat session, the image preview and payload are stretched horizontally, completely losing their original aspect ratio. ### Steps to reproduce 1. Open any chat session (Conversation, Roleplay, or Game Mode). 2. Click on the attachment button to upload an image. 3. Select any image with non-square proportions. 4. Observe the chat window preview. The image appears distorted and squeezed. ### Expected behavior The uploaded image should retain its original aspect ratio, using standard CSS properties like `object-fit: contain` to prevent visual distortion. ### Actual behavior The image is hard-stretched horizontally to fit the container. ### Environment * **Marinara Engine version:** [last stagging]
bsakaguchi 2026-10-21 06:02:17 +07:00
Author
Owner

@Romuromylus commented on GitHub (Sep 11, 2026):

Fixed by #6060, merged into staging as 6cb636588.

<!-- gh-comment-id:5636737819 --> @Romuromylus commented on GitHub (Sep 11, 2026): Fixed by #6060, merged into `staging` as 6cb636588.
Sign in to join this conversation.
No milestone
No project
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
Pasta-Devs/Marinara-Engine#3358
No description provided.