Skip to content
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

Added thumbnail to MagickImage #183

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

Peeterush
Copy link
Contributor

No description provided.

import { MagickGeometry } from '@src/types/magick-geometry';
import { TestImages } from '@test/test-images';

describe('MagickImage#thumbnail', () => {
Copy link
Owner

Choose a reason for hiding this comment

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

I think we also need an extra test that makes sure that the some of the metadata is not available in the resulting image.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a test for that! FYI Magick.NET is also missing this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems EXIF attributes (so .getAttribute, not .getProfile) are not removed, also not by .strip(). Is this intended behaviour?

Copy link
Owner

Choose a reason for hiding this comment

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

I try not to look at the Magick.NET tests and just add here what I think that should be added. Those attributes are not removed because they will not be stored to file. Maybe to make sure this is working correctly we could save the thumbnail to a blob and then read it again but I don't know if we really need to do that.

@dlemstra dlemstra merged commit 6c67e19 into dlemstra:main Oct 22, 2024
7 checks passed
@Peeterush Peeterush deleted the add-thumbnail branch October 29, 2024 10:53
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