• We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Suggestion Image Sprite - Scaling

cryptoevo.de

New Member
Joined
Jan 4, 2019
Messages
13
Hey lovely Clément,

I tried to use Sprite Image, but when i downsize with photoshop my images to 16x16px it gets artefacts/pixeld.
Downscaling from 64px or 32px with CSS is much cleaner.
So i found now as example " background-size : 50% 50%; ", could you add another box where you can set scaling?

Should work on all browsers.

I am already wondering why it is not already implemented? :)

Best regards,
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,169
Hi,

A box for sprite or a box for icons as well ?

Because I am no css expert so I wasn't aware of that feasibility plus it's a different way to handle as you need a scaling so that didn't fit with font awesome icons for example.

Clément
 

cryptoevo.de

New Member
Joined
Jan 4, 2019
Messages
13
Hi,

A box for sprite or a box for icons as well ?

Because I am no css expert so I wasn't aware of that feasibility plus it's a different way to handle as you need a scaling so that didn't fit with font awesome icons for example.

Clément
I am not an expert either :p but we both know what should be code able.
I tried many things and found now that:

Here is codepan with sample code, basically he is doing it over font size

I needed a bit time to understand, but when you change font-size it gets scaled.
SpriteImageScaling.PNG
 
Last edited:

cryptoevo.de

New Member
Joined
Jan 4, 2019
Messages
13
Hey :) @MtoR

Anything unclear? :) We could connect over Skype or smth similar! ;)
I have now like 40 icons, and i will have in future 100-200+ icons that are a lot of lot of request, decreasing it to only 1 single image and 1 request ist world difference! :))