I have a render hook that I use to resize images that are larger than a certain width. And for the images that are smaller than that width I don’t want to resize but do want to change their JPEG quality. I was trying the code below but it complains that I need to provide width and height.
{{ $smallImage := $image.Resize "q90" }}
Can I pass $image.Width to this Resize function? Im very new to Go so please excuse me.