Skip to content

Conversation

@amtiYo
Copy link
Member

@amtiYo amtiYo commented Sep 26, 2025

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +84 to +92
private static LoadedImage LoadStaticInternal(string path, string extension, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
try
{
using var stream = File.OpenRead(path);
var bitmap = new Bitmap(stream);
var metadata = MetadataBuilder.Build(path, bitmap.PixelSize, false, bitmap, null);
return new LoadedImage(path, bitmap, null, metadata);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Respect EXIF orientation for standard image formats

Static image loading that falls through LoadStaticInternal constructs an Avalonia Bitmap directly from the file stream without applying EXIF orientation. Only the Magick-based paths call AutoOrient, so common formats such as .jpg or .jpeg that carry orientation metadata but are not in MagickStaticExtensions will be displayed sideways or upside down. Consider normalizing orientation for all static loads (e.g. via ImageMagick or ImageSharp) before building the Bitmap and metadata.

Useful? React with 👍 / 👎.

@amtiYo amtiYo changed the title С# Based with Liquid Glass С# Based with Liquid Glass v0.1a Oct 29, 2025
@amtiYo amtiYo changed the title С# Based with Liquid Glass v0.1a С# Based with Liquid Glass v0.9a Nov 3, 2025
@amtiYo amtiYo merged commit f281f27 into main Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants