Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #32619

Solved: [Canvas] extracted cropped image is not a correct size

Path csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.roellig-ltd.de!open-news-network.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From Une Bévue <unbewusst.sein@fai.invalid>
Newsgroups comp.lang.javascript
Subject Solved: [Canvas] extracted cropped image is not a correct size
Date Mon, 13 Feb 2017 11:17:30 +0100
Organization Posted through ALPHANET (http://www.alphanet.ch/)
Lines 16
Sender unbewusstsein@vbo91-4-88-164-253-93.fbx.proxad.net
Message-ID <o7s13q$h57$1@shakotay.alphanet.ch> (permalink)
References <o7rue9$96u$1@shakotay.alphanet.ch>
NNTP-Posting-Host vbo91-4-88-164-253-93.fbx.proxad.net
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace shakotay.alphanet.ch 1486981050 17575 88.164.253.93 (13 Feb 2017 10:17:30 GMT)
X-Complaints-To usenet@alphanet.ch
NNTP-Posting-Date Mon, 13 Feb 2017 10:17:30 +0000 (UTC)
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
In-Reply-To <o7rue9$96u$1@shakotay.alphanet.ch>
Xref csiph.com comp.lang.javascript:32619

Show key headers only | View raw


Le 13/02/2017 à 10:31, Une Bévue a écrit :
 >       canvas.width  = 400;
 >       canvas.height = 400;

changing that to :
   canvas.width  = 96;
   canvas.height = 96;

gave me a 96x96 image :
<http://www.cjoint.com/doc/17_02/GBnkmNYekxX_17-02-13-11-08-32-inferno-avatar-cropper-test-on-mbp.png>

however, Firefox Dev Ed, always represent it as a 107x107 one ...
<http://www.cjoint.com/doc/17_02/GBnkqAz7M1X_17-02-13-11-09-35-inferno-avatar-cropper-test-mesure-on-mbp.png>

why ?

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[Canvas] extracted cropped image is not a correct size Une Bévue <unbewusst.sein@fai.invalid> - 2017-02-13 10:31 +0100
  Solved: [Canvas] extracted cropped image is not a correct size Une Bévue <unbewusst.sein@fai.invalid> - 2017-02-13 11:17 +0100

csiph-web