<?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>202458</bug_id>
          
          <creation_ts>2019-10-02 06:11:36 -0700</creation_ts>
          <short_desc>createImageBitmap with resize option fails on Mac and iOS</short_desc>
          <delta_ts>2025-02-20 08:52:20 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>179191</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Lord">clord</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>heycam</cc>
    
    <cc>mail+github</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1575959</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Lord">clord</who>
    <bug_when>2019-10-02 06:11:36 -0700</bug_when>
    <thetext>This is tested by imported/w3c/web-platform-tests/2dcontext/imagebitmap/canvas-createImageBitmap-resize.html, which passes on Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1576140</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-10-02 13:22:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/55921692&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096368</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander">mail+github</who>
    <bug_when>2025-02-20 08:25:35 -0800</bug_when>
    <thetext>Just wanted to see if there are any updates on this one?

`createImageBitmap` has been around for a while, but because of various bugs it&apos;s still hard to use (this is one of them).

A few examples of use-cases for `createImageBitmap`:

- Crop images on-device
- Resize images on-device before uploading to a server
  - For example a photo from `&lt;input type=&quot;file&quot; capture=&quot;environment&quot;&gt;`.
  - On-device image resize has long been problematic, with the main workaround being the Canvas element, but every implementation I&apos;ve seen has been buggy or hard to use, for example due to iOS canvas memory limits.
- Take snapshots from a video feed
- Extract sprites from a sprite sheet
- Take non-rotated image pixels with an associated EXIF tag and output rotated pixels (without any EXIF), or put differently strip EXIF and apply rotation to image data.
  - This is useful since many server-side systems prefer to handle all images without accompanying exif rotation data.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>