Jump to content

CSS Fix for large screenshots...


Delvar

Recommended Posts

Im not sure this is exactly the right place for this but as it related to the creations + screenshots i figured it was ok.

 

Iv noticed a lot of very large images that get cropped off by the width of the page, so i created a little CSS fix for it which limits the image max-width.

i wrapped it in a grease monkey script and uploaded it to pastebin for others to use.

 

http://pastebin.com/iJK4KWnf

 

all it does is change the CSS from

 

.bbc_img {
    border: 0;
}

 

to

 

.bbc_img {
    border: 0;
    max-width: 100%;
}

Link to comment
Share on other sites

heh - had just the same thought today.

 

thanks for doin it :)

 

btw the forum could need some better emojies/icons, which are not made to fit with white backgrounds only. you see all that white pixels around them.

Link to comment
Share on other sites

Ooh, good thread...I'll add my insight too

 

If you use steam links, you can adjust the link to resize

 

Lets take this link:

http://images.akamai.steamusercontent.com/ugc/172663625292359893/88068CF52EC31C87B17960381C48AA1C8EF214B4/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside|2048:1152&composite-to%3D%2A%2C%2A%7C2048%3A1152&background-color=black

 

The sections of the link enclosed by & can be adjusted or removed completely. For resizing, if you see the section that says "fit=inside|2048:1152" you can change these numbers to change the size

 

Like this (And if you view these links in more detail, you'll see I've removed a lot of the un-needed sections also)

 

?fit=inside|128:1152

?fit=inside|256:1152

?fit=inside|512:1152

Link to comment
Share on other sites

Thanks a bunch, Delvar.  :D Not all heroes wear capes.

 

so sad suggestion forum is where ideas come to die :(

 

https://www.avorion.net/forum/index.php/topic,1867.0.htmlic,1867.0.html

 

I guess it all comes down to which forum section more people visit. Things would probably get noticed instantly if they were posted in General Discussion and such.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...