trilbymedia / grav-plugin-image-captions

MIT License
10 stars 3 forks source link

image resize and caption gap #22

Open nopoz opened 11 months ago

nopoz commented 11 months ago

If I resize a large image down to a smaller one and insert a caption, there is a large gap between the image and caption text.

For example, taking a base image of 1024x768 and resizing to 400x400 with:

![image](image.jpg?resize=400,400&classes=caption "my caption")

This adds a large gap between the image and the text. Is there any way to prevent the gap from being created when resizing an image and using a caption? Thanks!