Hi,

i noticed that in "Recent Site Activity" some of the user-pictures are bad quality(unclear) and some of them good.
I thought its a token error(35x35 is used instead of 50x50 or thumbnail) but its a "picture-transform/compress" error.

The Pictures is ...styles/50x50/private/pictures and ...styles/35x35/private/pictures are too small.
I copied the pics from styles/thumbnail/private/pictures to styles/50x50/private/pictures(and 35) and everything is fine. But it is just a temporary solution.

My picture is 100x100 and will be showed properly in 35x35 size too so it doesnt make sense to convert the pics into too small size cause than they will be unclear.

I think im not the only one with this. I hope u can solve it. Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ezra-g’s picture

Status: Active » Postponed (maintainer needs more info)

Can you post a screenshot?

Also, have you flushed the presets for all image styles?

Where do you see the ""picture-transform/compress" error?

Laz5530’s picture

FileSize
41.97 KB

Here is a screenshot:
screenshot
As you can see the pictures by "commented" and "created" are not so clear as by "following".
And i think with this quality you can not recognize the person.
I looked it in the code, and the difference is that "following" uses images from the "50x50" directory.

I dont know how to "flush" the images. I changed nothing on Image-Styles.

Devin Carlson’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Component: Activity/status streams » Q+A (Commons Answers)
Assigned: Unassigned » Devin Carlson
Status: Postponed (maintainer needs more info) » Needs review
FileSize
2.06 KB

It looks like the Q&A message types didn't get the correct user picture size during export.

Devin Carlson’s picture

ezra-g’s picture

I haven't done functional testing but this patch looks good from a code review perspective.

Devin Carlson’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
134.38 KB
138 KB

Tested #3 with a fresh install of Commons and against an existing installation to check the upgrade path.

before_patch.png

after_patch.png

Devin Carlson’s picture

Status: Reviewed & tested by the community » Fixed
ezra-g’s picture

Issue tags: +Commons 7.x-3.3 radar

Tagging for 3.3 so we can track this when we look back at our release push :).

Laz5530’s picture

Thanks for the responses.
What you do with the patch is good, because ever image in the Activity Stream shouold have the same size(35x35).

But that was not my problem. I found the reason why were the images unclear, and its the "/config/media/image-styles". The style "35x35" make a scale to 35x35 but than will be a photo "full with big pixel".

I changed the scale under "/config/media/image-styles/35x35" to 60x70 so the images wont be compressed/scaled so much -> the quality will be better (they will be still shown in Activity Steam the same size(35x35))

If you could check if it has no "side-effects" and could be part of the theme.

Automatically closed -- issue fixed for 2 weeks with no activity.