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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17577</bug_id>
          
          <creation_ts>2012-06-22 14:08:58 +0000</creation_ts>
          <short_desc>Problem: How to manipulate pixels of an image that can then be affected by a transformation. Example: Load an image. Change pixels by increasing red value. Display image with a rotation. Result: Cannot be done. As far as I can tell there is no way to use</short_desc>
          <delta_ts>2012-08-23 19:59:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML Canvas 2D Context</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="rcabanie">cabanier</assigned_to>
          <cc>cabanier</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69344</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-22 14:08:58 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/2dcontext/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Problem:
How to manipulate pixels of an image that can then be affected by a
transformation.

Example:
Load an image. Change pixels by increasing red value. Display image with a
rotation.

Result: Cannot be done.

As far as I can tell there is no way to use pixel manipulation on a loaded
image. 
- There is no mechanism to manipulate pixels in an image
- There is no mechanism to &apos;put&apos; pixels from ImageData into an image
- There is no mechanism to apply a transform to ImageData
- There is no mechanism to drawImage ImageData

I&apos;m either ignorant of a method or this is a serious short-coming. I recognize
that the canvas may have no business altering image pixels, but some other
mechanism needs to exist to apply transformations to manipulated canvas
pixels.

I would like to see a putImageData have a flag to indicate if transformations
should apply, or, better yet, be able to drawImage(ImageData,x,y);

Thank you,
derek@upwithabang.com


Posted from: 174.3.214.112
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70382</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:23:58 +0000</bug_when>
    <thetext>This bug was cloned to create bug 17960 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72521</commentid>
    <comment_count>2</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-21 23:41:16 +0000</bug_when>
    <thetext>You need to create an offscreen canvas that you load your image in if you want to manipulate its pixels. So:
- create a HTMLImageElement, load the image
- create a canvas element that has the same dimensions as the image
- call drawimage to put the image into the canvas
- call getimagedata, manipulate the pixels and call putimagedata

The offscreen canvas can now be rotated/scaled/clipped on your screen canvas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72629</commentid>
    <comment_count>3</comment_count>
    <who name="rcabanie">cabanier</who>
    <bug_when>2012-08-23 19:59:54 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: 
This is an Editor&apos;s Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:
       http://dev.w3.org/html5/decision-policy/decision-policy.html

Status:                      WONTFIX</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>