<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>133570</bug_id>
          
          <creation_ts>2014-06-06 01:34:55 -0700</creation_ts>
          <short_desc>Safari on iOS7.0 can&apos;t scale images with drawImage taken with it&apos;s own camera</short_desc>
          <delta_ts>2014-09-02 11:21:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 7.0</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://greggman.com/downloads/examples/webkit-photo-issue/webkit-photo-issue.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gregg Tavares">gman</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dbates</cc>
    
    <cc>dino</cc>
    
    <cc>keving</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013766</commentid>
    <comment_count>0</comment_count>
    <who name="Gregg Tavares">gman</who>
    <bug_when>2014-06-06 01:34:55 -0700</bug_when>
    <thetext>An photo taken with an iPhone can not be manipulated in iOS Safari

Run the sample above, it will take a while to download the image because it&apos;s 3meg or so. The image is scaled from it&apos;s full size 3kx2k as taken directly from the iPhone, it is drawn into a 256x256 canvas using a destination scale. What it draws is incorrect.

Works on desktop Safari, Chrome and Android Chrome

I&apos;m going to guess it&apos;s a size issue since trying smaller images works. See

http://greggman.com/downloads/examples/webkit-photo-issue/webkit-photo-issue-3.html

The problem is I&apos;m using the &lt;input type=&quot;file&quot; accept=&quot;image/*&quot;&gt; to allow a web page to use an image the user takes or selects. The fact that I can&apos;t then actually use that image in a webpage with the canvas API seems like some limits need to be bumped up?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1013836</commentid>
    <comment_count>1</comment_count>
      <attachid>232625</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2014-06-06 12:14:07 -0700</bug_when>
    <thetext>Created attachment 232625
[Web Archive] greggman.com/downloads/examples/webkit-photo-issue/webkit-photo-issue.html

For historical preservation attached a web archive of &lt;http://greggman.com/downloads/examples/webkit-photo-issue/webkit-photo-issue.html&gt; as it appeared on 06/06/2014. I created the web archive using Safari Version 7.0.3 (9537.75.14).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032584</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Gale">keving</who>
    <bug_when>2014-09-02 02:27:08 -0700</bug_when>
    <thetext>We are also seeing this problem with our HTML5 app and it is causing us lots of problem. As far as I can tell this has been a problem since iOS6.

I have also reported this in the Apple Bug Reporter - case 17917149.

We would really appreciate this being fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032692</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2014-09-02 10:45:57 -0700</bug_when>
    <thetext>Did you try in an iOS 8 seed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032708</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin Gale">keving</who>
    <bug_when>2014-09-02 11:21:05 -0700</bug_when>
    <thetext>I was asked to try this in iOS8 beta 5 but my sample code would not run at all. As far as I could tell it was a problem with FileReader. I updated my original report with this information on the 12th August and also logged a new case on the 14th August relating to the new problem I found (18016794).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1032709</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Gale">keving</who>
    <bug_when>2014-09-02 11:21:45 -0700</bug_when>
    <thetext>Note: 18016794 is for Apple Bug Reporter and not WebKit.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>232625</attachid>
            <date>2014-06-06 12:14:07 -0700</date>
            <delta_ts>2014-06-06 12:14:07 -0700</delta_ts>
            <desc>[Web Archive] greggman.com/downloads/examples/webkit-photo-issue/webkit-photo-issue.html</desc>
            <filename>greggmann-webkit-photo-issue_060614.webarchive</filename>
            <type>application/x-webarchive</type>
            <size>1779</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">YnBsaXN0MDDRAQJfEA9XZWJNYWluUmVzb3VyY2XVAwQFBgcICQoLDF8QD1dlYlJlc291cmNlRGF0
YV8QE1dlYlJlc291cmNlTUlNRVR5cGVfEBtXZWJSZXNvdXJjZVRleHRFbmNvZGluZ05hbWVfEBRX
ZWJSZXNvdXJjZUZyYW1lTmFtZV5XZWJSZXNvdXJjZVVSTE8RBbw8IURPQ1RZUEUgaHRtbD48aHRt
bD48aGVhZD48L2hlYWQ+PGJvZHk+CjxzdHlsZT4KY2FudmFzIHsKICAgIGJvcmRlcjogMXB4IHNv
bGlkIGJsYWNrOwp9Cgo8L3N0eWxlPgo8Y2FudmFzIGlkPSJjIiB3aWR0aD0iMjU2IiBoZWlnaHQ9
IjI1NiI+PC9jYW52YXM+CjxzY3JpcHQ+CnZhciBpbWFnZSA9IG5ldyBJbWFnZSgpOwppbWFnZS5h
ZGRFdmVudExpc3RlbmVyKCdsb2FkJywgZHJhd0ludG9DYW52YXMsIGZhbHNlKTsKaW1hZ2Uuc3Jj
ID0gInBob3RvLmpwZyI7CgpmdW5jdGlvbiBkcmF3SW50b0NhbnZhcygpIHsKICB2YXIgY2FudmFz
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImMiKTsKICB2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