From 9ae7650f239cc56359b0dda85145fe15dc4775c2 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 6 Jun 2013 11:51:42 +0200 Subject: [PATCH] better handle doprava.png --- Makefile | 2 +- doprava.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3c7ba65..31d09da 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ refresh: refreshdpp: wget $(DOPRAVAURL) -O - | $(XMLLINT) --encode utf8 - > $(DOPRAVATMP) - wget $$($(XMLLINT) --html --xpath '$(DOPRAVAXPATH1)' $(DOPRAVATMP)) -O - | convert - data/doprava_.png + wget $$($(XMLLINT) --html --xpath '$(DOPRAVAXPATH1)' $(DOPRAVATMP)) -O - | convert -density 150 - data/doprava_.png && mogrify -resize 1200x1200 data/doprava_.png $(XMLLINT) --xpath '$(DOPRAVAXPATH2)' $(DOPRAVATMP) > data/doprava_.html mv data/doprava_.png data/doprava.png && mv data/doprava_.html data/doprava.html rm $(DOPRAVATMP) diff --git a/doprava.haml b/doprava.haml index 0118f0d..89a3aec 100644 --- a/doprava.haml +++ b/doprava.haml @@ -17,7 +17,7 @@ .content #imgdoprava - %img(src="data/doprava.png" style="width: 100%; max-width: 1191px;") + %img(src="data/doprava.png" style="width: 100%; max-width: 1200px;") #doprava =File.read("data/doprava.html")