Skip to content

Commit

Permalink
Merge pull request mfg92#17 from RidaAyed/sensibleResizeOptions
Browse files Browse the repository at this point in the history
update  README.md: change 
@RidaAyed
Change resize options width to 600 px to clear the blurriness
  • Loading branch information
mfg92 committed Jan 18, 2021
2 parents 5fd02e5 + 8780a54 commit 8965367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ https://gohugo.io/hugo-modules/theme-components/.
Here is an usage example:

```
{{< gallery match="images/*" sortOrder="desc" rowHeight="150" margins="5" resizeOptions="600x300 q90 Lanczos" showExif=true previewType="blur" embedPreview="true" >}}
{{< gallery match="images/*" sortOrder="desc" rowHeight="150" margins="5" resizeOptions="600x600 q90 Lanczos" showExif=true previewType="blur" embedPreview="true" >}}
```

This shortcode will generate a gallery containing all images of the folder *images*.
Expand All @@ -59,7 +59,7 @@ The `rowHeight` parameter determines the height of the rows that are displayed w

A thumbnail is generated using the `resizeOptions` parameter, they are handed over
to *Hugo's* [image processing](https://gohugo.io/content-management/image-processing/)
function using the fit method. In the example above, the generated thumbnails have a width of max 300 pixel and
function using the fit method. In the example above, the generated thumbnails have a width of max 600 pixel and
a height of max 600, the actual width and height depend on the original aspect ratio. The JPEG image quality is 90% and the
scaling uses the high quality *Lanczos* filter.

Expand Down

0 comments on commit 8965367

Please sign in to comment.