From 8c62c7cb32589f0a9a5cfdfad152a3e5670332e0 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 19 Nov 2014 23:27:47 +0100 Subject: [PATCH] Needed to use png for logo because of transparency. --- .../javascripts/app/lib/app_post/image_service.js.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/app_post/image_service.js.coffee b/app/assets/javascripts/app/lib/app_post/image_service.js.coffee index ab20ee4d9..bee94d889 100644 --- a/app/assets/javascripts/app/lib/app_post/image_service.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/image_service.js.coffee @@ -41,6 +41,10 @@ class App.ImageService #@resize() @canvas.toDataURL( type, quallity ) - toDataURLForApp: ( x, y ) => + toDataURLForAvatar: ( x, y ) => @resize( x * 2, y * 2 ) @toDataURL( 'image/jpeg', 0.7 ) + + toDataURLForApp: ( x, y ) => + @resize( x * 2, y * 2 ) + @toDataURL( 'image/png', 0.7 )