Skip to content

In case of an ico file a height or with of 0 actually means 256 #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

mveunen
Copy link
Contributor

@mveunen mveunen commented Nov 16, 2022

According to the specs on https://docs.fileformat.com/image/ico/ a width/height of 0 means 256 for ico files.

Copy link
Owner

@drewnoakes drewnoakes left a comment

Choose a reason for hiding this comment

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

The core change looks good, but please revert the unrelated formatting changes. It makes the class inconsistent with the rest of the code.

Comment on lines 37 to 38
public class IcoReader
{
public void extract(@NotNull final SequentialReader reader, @NotNull final Metadata metadata)
{
public class IcoReader {
public void extract(@NotNull final SequentialReader reader, @NotNull final Metadata metadata) {
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert the formatting change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, my IDE does that. It is reverted now

Copy link
Owner

@drewnoakes drewnoakes left a comment

Choose a reason for hiding this comment

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

Thanks very much!

@drewnoakes drewnoakes merged commit 5754a0d into drewnoakes:master Nov 29, 2022
drewnoakes added a commit to drewnoakes/metadata-extractor-dotnet that referenced this pull request Dec 12, 2022
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