Log in

No account? Create an account

Previous Entry | Next Entry

hi ^^

i noticed this yesterday, but it might have happened a while ago - i just didn't see it.
obviously, LJ (recently?) does resize images when they don't have BOTH width & height specified..?

i have this post here with the little avatars. save for the pink one, they were all a bit too big to stand in one line (there were 2 more originally) with their original height of 120px, and a bit pixelated too, so in my entry i specified per html "height="100px". i didn't specify a width because it worked fine like this.
but as i looked the avatars more in detail yesterday (i want to add some soon), the line seemed weird to me - and bingo, the reason is they show now in their original size of 120px. though, the html is still correct in the entry.

i have the same entry with the same code in my dreamwidth here, and since DW hasn't added this resizing bug feature, it still shows how i want/how i html'ed it. i could swear this LJ entry looked how i wanted it, at least in the beginning.. because i had 2 more avatars in the line, and with the 120px size it's impossible.

fact is, as i checked with mozilla's tool "inspector", i came across this:

.j-p-resize-all-images .asset-body IMG:not([class="i-ljpoll-results-bar"]),
.j-p-resize-images-without-sizes .asset-body IMG:not([width]):not([height]) {
height: auto;
max-width: 100%;

it comes from an internal LJ css sheet, nr /:2052

the height is the screwy one, when i switch this off in the inspector the images are 100px like in my html again.
i tried to add this same code in my css and modify the parameters, adding !important, but nothing works. the problem being, there is no "not-auto" parameter, inherit/none shows no change, and of course an exact px amount can't apply to all images/entries. nonsense (like: % alone, empty..) to make the code plant doesn't work either.

how can i get rid of this? i don't want to control all my pics and edit all entries to add the missing heights/widths.
i usually use my images how i upload them, or resize only the entry relevant height OR width (post width, cell height..) when necessary. first because it's enough (without this feature), second i don't know exactly what the other parameter will become or i'd have to calculate it.

as far as i know, you can't override LJ css with user css so your entry html is respected again - but maybe i'm wrong?


( 4 comments — Leave a comment )
Jan. 22nd, 2014 03:38 pm (UTC)
bookmarking this because I have the same problem, hopefully somebody knows a solution (or LJ gets its shit together, which I doubt, sadly)
Jan. 22nd, 2014 03:55 pm (UTC)
"or LJ gets its shit together, which I doubt, sadly"

yeah, especially since this rule doesn't make much sense for me in the context of my entry.
i can understand somehow when HUGE pics get downsized, the overflowing over the entry border isn't exactly beautiful and breaking layouts by creating xtra wide entries (when you use tables i think?) you have to scroll 3x across isn't either. take it that some unskilled users uploading megapix wouldn't explicitely want this to happen (some do!) and wouldn't know how to mend it..okeeee. big B LJ helps.
but these here are very small pics, they don't break anything.
only explanation i can figure why they came up with this "feature" is: i think that in xtml some rules are stricter, hence you'd need BOTH width & height of an image to be specified ~
Feb. 13th, 2014 03:40 am (UTC)
erhrm.. this must be the most pathetic help search of my life.
there is an option for this in the customizing panel:

though, for my defense, i swear i never saw it. either i totally oversaw it as i opened my LJ back in 2009.. or this option has been added later. after i wrote the entry, which seemed to be ok as i wrote it...
i found it per chance, looking for something else :/
Feb. 13th, 2014 12:10 pm (UTC)
Definitely new...Damn LJ and it's effing unwanted changes!
Now they don't even warn before they make them.
( 4 comments — Leave a comment )

Latest Month

March 2016

S2 Help Communities


Powered by LiveJournal.com
Designed by chasethestars