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

From Une Bévue <unbewusst.sein@fai.invalid>
Newsgroups comp.lang.javascript
Subject Solved: [Canvas] extracted cropped image is not a correct size
Date 2017-02-13 11:17 +0100
Organization Posted through ALPHANET (http://www.alphanet.ch/)
Message-ID <o7s13q$h57$1@shakotay.alphanet.ch> (permalink)
References <o7rue9$96u$1@shakotay.alphanet.ch>

Show all headers | 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