Skip to content

Unresized images in older scores display too small #32387

@MarcSabatella

Description

@MarcSabatella

Issue type

Engraving bug (incorrect score rendering)

Description with steps to reproduce

If you have a score created prior to 4.7 and it contains an image that was not resized within MuseScore Studio, it displays much smaller in 4.7 than it did originally. Images that were resized display correctly.

  1. Open attached score (rename from ZIP to MSCZ) in both 4.6.5 and 4.7
  2. Compare the first measure

default-image-size.zip

Supporting files, videos and screenshots

4.6.5:

Image

4.7:

Image

In which versions of MuseScore Studio is this issue present?

OS: Debian GNU/Linux 12 (bookworm), Arch.: x86_64, MuseScore Studio version (64-bit): 4.7.0-260225043, revision: github-musescore-musescore-c1254b4

Regression

Yes, this works in the latest released version and is broken in the nightly builds

Operating system

Debian 12

Additional context

Looking at the generated MSCX, the un-resized image does not encode any size info, whereas resized images have "size" tags with "w" and "h" attributes. So I'm guessing that the image is being interpreted relative to the new internal DPI instead of the old.

Checklist

  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    engravingShape, position, or ability to notate musical symbols & text in the scoreneeds reviewThe issue needs review to set priority, fix version or change status etc.regression nightlyWorks correctly in the latest released version and is broken in the nightly builds

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions