Skip to content

Conversation

Copy link

Copilot AI commented Nov 28, 2025

Adds the interactive image deformation (liquify) feature to iOS, matching the Android version's ImageDeformActivity. The iOS library already had the C++ CGELiquidationFilter implementation but lacked the Objective-C wrapper and demo UI.

Changes

Library

  • CGEDeformFilterWrapper (cge/interfaces/) - Objective-C wrapper for CGELiquidationFilter
    • Forward, bloat, wrinkle, restore deformation modes
    • Undo/redo with configurable step limit
    • Mesh visualization toggle
    • Input validation on creation
  • Updated cge.h umbrella headers to export the new wrapper

Demo

  • ImageDeformViewController - Touch-based deformation demo
    • Pan gesture for real-time mesh manipulation
    • Mode selection (Forward/Bloat/Wrinkle/Restore)
    • Adjustable radius and intensity
    • Gallery integration and save functionality
  • Added "Image Deform Demo" entry to Main.storyboard

Documentation

  • Updated README with feature list and usage example

Usage

#import "cgeDeformFilterWrapper.h"

CGEDeformFilterWrapper* wrapper = [CGEDeformFilterWrapper createWithWidth:1280 
                                                                   height:720 
                                                                   stride:10.0f];
[wrapper setUndoSteps:50];

// Forward deform (push pixels)
[wrapper forwardDeformWithStartX:100 startY:100 endX:150 endY:150 
                           width:canvasWidth height:canvasHeight 
                          radius:100.0f intensity:0.15f];

// Undo/redo
if ([wrapper canUndo]) [wrapper undo];

Manual Step Required

Add new files to Xcode projects:

  • cgeDeformFilterWrapper.h/mmcgeFramework.xcodeproj
  • ImageDeformViewController.h/mmcgeDemo.xcodeproj
Original prompt

任务: 帮我迭代这个项目, 对齐安卓版本 https://github.com/wysaid/android-gpuimage-plus/ 的液化功能。
描述:本项目有一段时间没有迭代了, 功能已经落后了安卓版本较多。 请审查本项目与安卓版本项目的差异, 帮我补全功能(尤其是 Demo 展示这块)
目前安卓版已经有一个单独的页面用于展示液化相关的功能。 重点关注一下这个功能。
开发完毕之后, 也顺便更新一下项目的描述


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link

coderabbitai bot commented Nov 28, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 2 commits November 28, 2025 07:25
Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com>
Co-authored-by: wysaid <1430725+wysaid@users.noreply.github.com>
Copilot AI changed the title [WIP] Align liquify functionality with Android version Add Image Deform/Liquify feature to iOS demo, aligning with Android version Nov 28, 2025
Copilot AI requested a review from wysaid November 28, 2025 07:33
Copilot finished work on behalf of wysaid November 28, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants