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 )