Wowchemy-hugo-modules: Make height of all image thumbnails equal

Created on 11 Aug 2018  路  8Comments  路  Source: wowchemy/wowchemy-hugo-modules

Right now, I use various images for posts and projects. The height of these images are not equal. Hence, the preview is not very pleasant. How can I ensure that the height of all images are equal? Also, after resizing the height, it is preferable to me to center align the image in case the width is low.

enhancement

Most helpful comment

@somnathrakshit it's now implemented. If you update to the latest master version, the functionality can be used:

  1. Refactor a project named X.md to content/project/X/index.md so that each project is in its own folder
  2. Add an image named featured.* (e.g. featured.jpg or featured.png) to your projects's new folder
  3. Images will be automatically sized

All 8 comments

Thanks for the feedback. We could potentially utilize some of Hugo's image processing functions in Academic for this purpose.

Will wait for this one eagerly. Urgently needed.

Same same, to me that's the main limitation at the moment, and the existing workarounds are not sufficient. Do you have specific hugo image processing funtions in mind?

Closing this as #708 and #718 should enhance the experience when working with images. The automatically sized featured image has already been implemented and is being rolled out to widgets too (so far the streaming layout of the posts widget, if you wish to try it).

Any way to implement this in the projects section in the homepage?

@somnathrakshit it's now implemented. If you update to the latest master version, the functionality can be used:

  1. Refactor a project named X.md to content/project/X/index.md so that each project is in its own folder
  2. Add an image named featured.* (e.g. featured.jpg or featured.png) to your projects's new folder
  3. Images will be automatically sized

Thank you very much

I really like this new functionality, thanks!
One more thing though: is there an option to display an image on the home page card, but not on the project page itself? At the moment they are really big, and shifted to the right, which doesn't look great.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Framartin picture Framartin  路  4Comments

gcushen picture gcushen  路  3Comments

HughP picture HughP  路  4Comments

saadjavaid picture saadjavaid  路  3Comments

melvidoni picture melvidoni  路  3Comments