*
  Мысли   Галерея   Проекты   Тексты  
  Мысли   Галерея   Проекты   Тексты  
Giver: картинки в цсс  (2018-03-27 12:46:54)

Делаю расширенике для хрома, с загрузками картинок из статики проблемы, поэтому мы делаем вот так:

#!/bin/bash
for a in *.png;do
    echo .`echo $a |sed 's/./_/'` '{' background:url(data:image/png';'base64,`base64 -w 0 $a`) no-repeat';}'
done > img.css

Pазмер всех картинок выростает из 57кб до 75, но кого это волнует сегодня? А если пожать гзипом, то получаем те же 58кб. Так что это даже быстрее загрузится. Прям статья на хабор готова!


dobsonz от 2020-10-18 23:43:58:
lqtgE2 http://pills2sale.com/ levitra nizagara
Lillian от 2020-10-26 09:32:15:
Where do you live? silymarin webmd During the brutal rampage, 27-year-old Jennifer Martel was reportedly attacked in the kitchen, living room, and stairway of the couple’s Waltham, Mass. home, before the muscular man flung her to ground on their patio and slashed at her while his clothes soaked up her blood.
Katherine от 2020-10-26 09:32:15:
There's a three month trial period zestra arousal oil in canada I am so tired of all the disgusting people airing their shameful personal business and then continuing to justify it to make themselves feel like a victim. Bottom line, if you're not happy in a marriage either commit to making it better (which obviously wasn't an option for her) or get a divorce. The audacity of these people to conduct their lives this way and then shove down everyone's through-all while "asking for privacy" as if they are REALLY interested in protecting the "children"!!! It's all laughable. Sounds like she's getting exactly what she deserves and they both deserve each other.
Rudolph от 2020-10-26 09:32:16:
I'd like to take the job buy flagyl/generic metronidazole However, contaminated water that TEPCO has been unable to contain continues to enter the Pacific Ocean at a rate of hundreds of tons per day. Much of that is ground water that has mixed with untreated radioactive water at the plant.
Darrick от 2020-10-26 09:32:16:
A staff restaurant satibo australia As expected, it was a successful Smith-Ryan combination that won in Atlanta on Monday night. It just happened to be the Jets who delivered that named 1-2 punch, and with it, a serious blow to the Falcons' playoff hopes.
Nathanael от 2020-10-26 09:32:16:
How do you spell that? clotrimazole betamethasone cream poison ivy Even as rescuers were scrambling to aid the stranded, there were fears that the death toll of three would climb as searchers moved through Colorado’s Front Range. At a morning news conference, Boulder County Sheriff Joe Pelle grimly predicted more bad news.
Liam от 2020-10-26 10:09:57:
I came here to work buy propranolol 10 mg Authorities at all levels, were keen to demonstrate to her how much has been achieved in terms of resettlement, reconstruction and rehabilitation, in the relatively short period since the conflict with the LTTE ended in 2009.
Snoopy от 2020-10-26 10:09:57:
I live here goodrx lamictal xr Tubes can go over or under the ground, and passengers could sit in a pod designed to be hurled at great speeds. While vacuums and fans could be considered, Musk is going for an air hockey type approach that will see the travel pod sitting on a cushion of air.
Timothy от 2020-10-26 10:09:58:
I work here online pharmacy viagra india “It was fun,” she said. “I mean I’m just trying not to laugh the whole time because he just makes me and everyone laugh so hard but — it was great, he’s just so good. Watching him is a delight.”
Orlando от 2020-10-26 10:09:58:
A pension scheme terbinafine prescription uk With surging crude imports accounting for nearly 60 percentof oil consumption, China was keen to court Canada, which sitson the world's third-largest oil reserves after Venezuela, as akey supply source. Half of China's oil imports come from thevolatile Middle East via the Malacca Strait.