[Fix]: srcsets require a height to properly crop images #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I found an issue where srcsets being generated did not contain the
height
attribute which means you are unable to crop. I researched the problem and found issue #41 where at least one other user noted the same problem.This PR resolves #41
[Screenshot before - fit:crop]:
![before-crop](https://private-user-images.githubusercontent.com/5696449/279196765-b6041d97-7b31-4687-b394-38817d7aa5d5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDM0MzEsIm5iZiI6MTczOTEwMzEzMSwicGF0aCI6Ii81Njk2NDQ5LzI3OTE5Njc2NS1iNjA0MWQ5Ny03YjMxLTQ2ODctYjM5NC0zODgxN2Q3YWE1ZDUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTIxMjExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2M2ZWNjNGI0MTI2N2Q5MGZiYzI1ZjQ2ZDUyYzJjMzJmYzkzZmJkN2FlMDc3NDFiNThmYmEyNTM2MDQ4ODQ0NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QAa-8X61t45iLT1n35q2lRjB5iMdXYf2HXEBapdEiTw)
![after-crop](https://private-user-images.githubusercontent.com/5696449/279196745-40dd931b-f40a-4076-82d4-df30c2b3c41a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDM0MzEsIm5iZiI6MTczOTEwMzEzMSwicGF0aCI6Ii81Njk2NDQ5LzI3OTE5Njc0NS00MGRkOTMxYi1mNDBhLTQwNzYtODJkNC1kZjMwYzJiM2M0MWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMTIxMjExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTc2YjM4ODZhYzBmZjVmYmNlNDUwYzE3YjU4OTU2YTRmNTViY2I0YmVjYmM0Yzk2Mzk1MDdjYTkxMDQ5YWJmZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.W5TYchqZU_B9hVOvj-_5DLpP02zZdJOwxd4Jccfu4uI)
[Screenshot after - fit:crop]: