Skip to content

Commit

Permalink
Update note.md (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
andf-viam authored Nov 20, 2023
1 parent 77346fb commit f87d91c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/note.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,3 +575,16 @@ Basically the only images that you'd want to use declaredimensions on are the on

If it does resize, use the largest size the image can take up as the image to `resize` the image to.
{{< /alert >}}

### Image size

Images should be under 1MB in size.
Hugo throws a warning during local builds (such as `make serve-prod`) if your images exceed this size.

To resize images over 1MB, use the image resize tool of your choice.
For example, to resize `png` images, you could use [tinypng](https://tinypng.com/).

{{< alert title="Note" color="note" >}}
The `imgproc` shortcode itself only resizes height and width measurements (and converts format), but _does not alter the source image_.
Please use an image size minimizer to resize the source image to below 1MB as well.
{{< /alert >}}

0 comments on commit f87d91c

Please sign in to comment.