Forum

Thread tagged as: Question, Problem, Gallery

Gallery image quality

Is it possible to use the quality tag with a image in the gallery app?

I have tried adding it to the image tag in image.html file as well as the output template, but alas Perch is not generating the (low-res/compressed) file.

I just wanted to make sure I'm not doing anything incorrect.

Damon Golding

Damon Golding 1 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

It should be possible in the image.html template, yes.

Are you using GD or Imagick? What file format?

I'm using GD and the image format is jpg.

I add this to the image.html file:

<perch:gallery id="image" type="image" key="low" quality="1" />

I do get a output image but it's at full quality

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is that when uploading a new image having made the template change?

It is yes.

I have tried with both uploading a new image and amending an existing image.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I would expect that to work, and a code review looks like it should be working. I'll log in and investigate.

This is still an issue after updating to 2.8.2

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, it is.