Score:0

Image compression problem

be flag

I keep on running into an issue with image compression on Drupal.

I have a set of good quality, clear images, that I'm resizing down to 100px by 100px in CSS.

When I resize, the quality worsens and the images look blurry. The site uses GD2 compression enabled at 100%, but this setting doesn't seem to have any effect.

The image style is set to scale and crop at 365px by 365px.

Anything I could be missing?

Jaypan avatar
de flag
CSS and GD have nothing to do with each other. GD is for creating a new image file from an existing image file, while changing the size (and or making other edits), while CSS takes the image that is delivered from the server, and tells the browser how many pixels it should be rendered in. When you examine the image being shown in the browser, what are the actual dimensions of the image?
Kevin avatar
in flag
Do not use CSS to "size" images. Use Image Styles in Drupal.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.