You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to resize images while keeping the ICC profile and color space, currently it only seems to work with the P3 profile, with other profiles it seems like sharp stretches the image (And accumulates every time it is resized). I don't know if I'm doing something wrong.
I am using sharp 0.33.4
When you searched for similar issues, what did you find that might be related?
Commit 2eb03b0 fixes this by preventing an unnecessary colour transformation plus adds a test that would previously have failed to help prevent regression, thanks for reporting.
Question about an existing feature
What are you trying to achieve?
I'm trying to resize images while keeping the ICC profile and color space, currently it only seems to work with the P3 profile, with other profiles it seems like
sharp
stretches the image (And accumulates every time it is resized). I don't know if I'm doing something wrong.I am using
sharp 0.33.4
When you searched for similar issues, what did you find that might be related?
#4008, #3906 and #4128
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
Original
![Rose-ProPhoto Rose-ProPhoto](https://private-user-images.githubusercontent.com/18549191/355814605-bc11564a-b9c4-4ca9-88d9-af22d13d0322.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzQ4OTMsIm5iZiI6MTczOTQ3NDU5MywicGF0aCI6Ii8xODU0OTE5MS8zNTU4MTQ2MDUtYmMxMTU2NGEtYjljNC00Y2E5LTg4ZDktYWYyMmQxM2QwMzIyLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5MjMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5ZDA0ZmEwNjU4OWU2MTQwNzliNTM3ZTlkYjY3MzRhMWJmY2IyZmQ2MGJjMzdiNTFiMzc4OWNjNjAwMTdjMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QXfLv0Du6wsEb2YSsh-qgTqpx0iDPbM8X1c2eEZpPy0)
Resized with
![Rose-ProPhoto-2 Rose-ProPhoto-2](https://private-user-images.githubusercontent.com/18549191/355815574-9b11c67d-2a16-467c-a3b3-4bc9be5c4a54.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzQ4OTMsIm5iZiI6MTczOTQ3NDU5MywicGF0aCI6Ii8xODU0OTE5MS8zNTU4MTU1NzQtOWIxMWM2N2QtMmExNi00NjdjLWEzYjMtNGJjOWJlNWM0YTU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5MjMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1NjgyMDhmOTZlMDIzMTIzYjRjZjFlMjgzNzZjMzk3MTViNWIwZTZkMjNlNDg2NWJlOGRjY2U5Mzc5MDdlM2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3yg_GhX6BXhZOhTtTPaRGt3RdRxqGJ-xwt3C1WOTP00)
keepIccProfile
Resized with
![Rose-ProPhoto-3 Rose-ProPhoto-3](https://private-user-images.githubusercontent.com/18549191/355820359-8557b1c9-385e-4044-9ec1-165613fb241d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzQ4OTMsIm5iZiI6MTczOTQ3NDU5MywicGF0aCI6Ii8xODU0OTE5MS8zNTU4MjAzNTktODU1N2IxYzktMzg1ZS00MDQ0LTllYzEtMTY1NjEzZmIyNDFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5MjMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MzI1N2JiN2VmY2FkMGZhNDFkOGNiYWU0YTIzNzM2MzA1NDJlYzcwOTk5NzU1ZTI5ZDIwMGI5ZjQ3NGNhMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ve-XkzW_jR1QkJGg1jfnmkuUd_mFjswH5NJAvhGRuwE)
keepIccProfile
2 timesPlease provide sample image(s) that help explain this question
images.zip
The text was updated successfully, but these errors were encountered: