#402 Need to scale down hackergotchi in planet rss feed css
Closed: Fixed Opened by duffy.

= phenomenon =

= reason =

= recommendation =


Hi, can you send me the file and de size you want to scale it please ?

@reedfa its not scaling one picture, the ticket was made as a task to change the css for the rss for the planet feed. So that all hackagotchis got scaled down to a certain size

ryanlerch agreed to take this one during today's design team meeting.

hey ryan, we're doing triage in the meeting, wondering if you had a chance to look at this?

will try to get to this one this week too.

hey ryanlerch, did you end up fixing this one?

opening this up for inactivity

mythcat is going to try this one

I saw the problem.
Is need to update the css file for resize the image for Hackergotchi Heads.
But the problem I don't see the head.css over git
So need more info. I wrote webmaster@fedoraproject.org maybe give me some help.

The problem here is that the issue is with the hackergotchi heads in the RSS feed -- the heads on the planet website are scaled appropriately down.

The solution here (IMHO) is to add a in-line CSS style (or an old-school width="100px") to the img tag that is being sent in the html data in the RSS feed.

The issue is that the planet is quite an old piece of infra, and when i tried to set up a test box to try these changes, i failed miserably. It might be worth asking in #fedora-apps as well as #fedora-websites to see if anyone can point you in the right direction.

If I have access to the host http://fedoraplanet.org/heads/ I will fix it.

Also when I try to follow ShowUs ( indicated by mizmo) I got this:
{{{
File "/usr/lib64/python2.7/site-packages/genshi/template/eval.py", line 414, in undefined
raise UndefinedError(key, owner=owner)
genshi.template.eval.UndefinedError: None has no member named "alpha"
Makefile:4: recipe for target 'af' failed
make: *** [af] Error 1
}}}

Hi @mythcat, can you test your changes locally, client side? I like using this widget for testing CSS changes when it's too hard to deploy a local instance:

https://www.squarefree.com/bookmarklets/webdevel.html#test_styles

You could also use a tool like firebug.

@duffy I sent one mail with news about this ticket. I have my tools. Thank you for help.

@mythcat I saw the email - do you have CSS to test?

I randomly took a picture big enough 400px to make one offline test. This is the result of my CSS online changes.

@Adam Samalik: I hope not to offend me or others who do not read https://fedoraproject.org/wiki/Hackergotchi '''Guidelines'''

'''The size of most hackergotchis is around 100px. New hackergotchis made by the Design Team are sized 120px by 120px, which we recommend. Anything from 100px to 120px is fine, though.'''

[[Image(tested.png,600px)]]

okay cool thank you mythcat! i will test this out using the repo and try to submit as a patch.

I have recently just updated the Planet theme, and in the process have made hacking on it a lot easier.

The theme now lives in it's own git repo here:

https://pagure.io/fedoraplanet-theme

and the readme contains instructions on how to easily set up a theme devel envrionment.

In the process of the updating the theme, i fixed the issue of the heads page having oversized images, but the original bug of the RSS feeds having oversized images still remains.

Looking into it, it appears it only happens on two of the feeds types, rss2 and atom, and just adding max-width and max-height items to the inline styles for the heads should fix this issue:

https://pagure.io/fedoraplanet-theme/blob/master/f/sub-planets/people/templates/atom.xml.tmpl#_19

https://pagure.io/fedoraplanet-theme/blob/master/f/sub-planets/people/templates/rss20.xml.tmpl#_19

cheers,
ryanlerch

Ryan, the problem with the pictures appears now also directly on the planet. Especially on FedoraMagazine, as there are now the featured images in the feed. See screenshot

Metadata