Processing

Please wait...

Settings

Settings

Goto Application

1. CN109801344 - Image processing method and device, storage medium and electronic equipment

Office
China
Application Number 201910003254.1
Application Date 03.01.2019
Publication Number 109801344
Publication Date 24.05.2019
Publication Kind A
IPC
G06T 11/00
GPHYSICS
06COMPUTING; CALCULATING OR COUNTING
TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
112D image generation
CPC
G06T 11/00
GPHYSICS
06COMPUTING; CALCULATING; COUNTING
TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
112D [Two Dimensional] image generation
Applicants SHENZHEN ONECONNECT TECHNOLOGY CO., LTD.
深圳壹账通智能科技有限公司
Inventors YANG TAO
杨涛
Agents 深圳市隆天联鼎知识产权代理有限公司 44232
Title
(EN) Image processing method and device, storage medium and electronic equipment
(ZH) 一种图像处理方法及装置、存储介质、电子设备
Abstract
(EN) The invention discloses an image processing method and device, a storage medium and electronic equipment. The method comprises the following steps: extracting a to-be-processed original image from a webpage; detecting whether a first image editing operation for the to-be-processed original image is received or not; If the first image editing operation is received, editing dom elements in the to-be-processed original image according to the first image editing operation to obtain a first image; detecting whether a second image editing operation for the first image is received or not; if a secondimage editing operation is received, editing the dom element in the first image according to the second image editing operation to obtain a second image; and when an image generation operation is received, calling Canvas to generate a target image matched with a preset format to be output from the second image. The image editing operation is realized on the dom element, and only Cannvas needs tobe called when the target image is generated, and protocol packaging is carried out through the transmission protocol, so that the jamming problem can be solved, and the image editing efficiency can be improved.
(ZH) 一种图像处理方法及装置、存储介质以及电子设备,该方法包括:从网页中提取待处理原始图像;检测是否接收到针对待处理原始图像的第一图像编辑操作;若接收到第一图像编辑操作,根据第一图像编辑操作对待处理原始图像中的dom元素进行编辑,获得第一图像;检测是否接收到针对第一图像的第二图像编辑操作;若接收到第二图像编辑操作,根据第二图像编辑操作对第一图像中的dom元素进行编辑,获得第二图像;当接收到图像生成操作时,调用Canvas将第二图像生成与预设待输出格式匹配的目标图像。图像编辑操作均在dom元素上实现,只需在生成目标图像时调用Canvas,通过传输协议进行协议封装,能够解决卡顿问题,提高图片编辑效率。
Related patent documents