From: Tom Hughes Date: Tue, 27 Oct 2015 11:49:06 +0000 (+0000) Subject: Use PNG logo for og:image X-Git-Tag: live~4032 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/18d26c0d81f1d0e39e90e1339b73037762df4e6f Use PNG logo for og:image --- diff --git a/app/assets/images/osm_logo_256.png b/app/assets/images/osm_logo_256.png new file mode 100644 index 000000000..5388bc5b7 Binary files /dev/null and b/app/assets/images/osm_logo_256.png differ diff --git a/app/assets/images/osm_logo_512.png b/app/assets/images/osm_logo_512.png new file mode 100644 index 000000000..c54f416ab Binary files /dev/null and b/app/assets/images/osm_logo_512.png differ diff --git a/app/helpers/open_graph_helper.rb b/app/helpers/open_graph_helper.rb index 12c794dd0..61c3dc44b 100644 --- a/app/helpers/open_graph_helper.rb +++ b/app/helpers/open_graph_helper.rb @@ -4,9 +4,8 @@ module OpenGraphHelper "og:site_name" => t("layouts.project_name.title"), "og:title" => [t("layouts.project_name.title"), title].compact.join(" | "), "og:type" => "website", - "og:image" => image_path("osm_logo.svg", :host => SERVER_URL), - "og:image:width" => "200", - "og:image:height" => "200" + "og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"), + "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https") } tags.map do |property, content|