Jump to content

Image resizing in attachments select.


Numbered

Recommended Posts

Here is example:

vlozhenija.png.787182f5c1897abbc64b1bc3c309a1b2.png

First two images are big. So they "cover" state is well. But last three images is very small. See them:

pulemet_anim_03.gif.8e6e2e2b76f8be30969c86c76b9896c0.gifpulemet_anim_02.gif.e6a3c357740eb2bc23af2e8c9dd1294a.gifpulemet_anim_01.gif.ebe200503042ecf5aa8081b38005c2d5.gif

So they view is bad (and in post creating this view is bad too):

21cd58472358063583e4b771cdce2f64.png

 

Can you change layout from background-image to <img> tag? For tag we can set max-width: 100% and max-height: 100% and result will be as "contain", but with empty lines on some side.. But I think this is better, than bad resize of little. Or you can create you better solution)

Thanks

Link to comment
Share on other sites

And any chance to fix this..?

 

We add:

.cPost .cPost_contentWrap { overflow: hidden; }

to fix them. But it no good solution. Anybody can write

position: absolute;
left: 0;
top: 0;
width: 10000px;
height: 10000px;
z-index: 50000;

and broke any page with this comment

 

 

Link to comment
Share on other sites

I feel like this situation is an exception as opposed to the rule. I am not sure IPB should manage to the exception. Most people are not going to upload icon sized images. In my case even if someone did I like that the thumbnails are uniform in size creating a consistent looking layout even if it is at the expense of a stretched poorly rendered image.

However, the big red bar out of the boundary of the forum layout should be fixed. :)

Link to comment
Share on other sites

The fix for the red bar is to not allow HTML AND pasting styled content. If you allow any of these options, there will always be a way to break the layout. It’s just how HTML works.

You can’t just strip all width statements for example. That would also remove width statements that are useful/needed. You also can’t limit the width statement to say below 300 pixels to fix this. Then I just paste a row of elements like that to break the layout. 

People could also flood your forums with nonsense text if they wanted to – or they can insert unwanted styling. A forum has moderators to deal with that. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...