Image editing method and apparatus, device, medium and program product
By displaying candidate text templates in the image editing interface and allowing users to select and apply text templates, the problem that existing image editing functions cannot meet diverse user expectations is solved, thus improving the efficiency and display effect of image editing.
Patent Information
- Application Number
- PCT/CN2025/095645
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-24
- Filing Date
- 2025-05-19
- Publication Date
- 2025-11-27
AI Technical Summary
Existing image editing functions fail to meet users' diverse editing expectations, and the image display effect is poor.
An image editing method and apparatus are provided. By responding to the triggering operation of a target control in a target interactive interface, an image editing interface is displayed, including candidate text templates and an image to be edited. The target text template is selected, and the splicing result area of the target text is displayed in the image editing interface to realize the text smearing operation.
It improves the efficiency and display effect of image editing, meeting users' diverse editing expectations.
Smart Images

Figure CN2025095645_27112025_PF_FP_ABST
Abstract
Description
Image editing method, device, equipment, medium and program product
[0001] This application claims priority to Chinese Patent Application No. 202410659206.9, filed May 24, 2024, the disclosure of which is incorporated herein in its entirety by this reference as part of the present application. TECHNICAL FIELD
[0002] Embodiments of the present disclosure relate to an image editing method, device, equipment, medium and program product. BACKGROUND
[0003] With the development of computer technology, the function of image editing is becoming more and more diversified. For example, image editing includes adding specific material content to the original image to enrich the image effect.
[0004] The current image editing function cannot meet the user's diversified editing expectations, and the image display effect is not good. SUMMARY
[0005] Embodiments of the present disclosure provide an image editing method, device, equipment, medium and program product, which can improve the image display effect and meet the user's editing expectations.
[0006] In a first aspect, embodiments of the present disclosure provide an image editing method, comprising:
[0007] In response to a trigger operation on a target control in a target interactive interface, an image editing interface is displayed, the image editing interface comprising a candidate text template and an image to be edited, wherein the candidate text template represents text with a set attribute that can be used for splicing;
[0008] In response to a selection operation on the candidate text template, a target text template is determined;
[0009] In response to a target text-based smearing operation on the image to be edited, a target image is displayed in the image editing interface, the target image containing a splicing result area of the target text, wherein the target text represents the editing result of the target text template.
[0010] In a second aspect, embodiments of the present disclosure also provide an image editing device, comprising:
[0011] A template display module is configured to display an image editing interface in response to a trigger operation on a target control in a target interactive interface, the image editing interface comprising a candidate text template and an image to be edited, wherein the candidate text template represents text with a set attribute that can be used for splicing;
[0012] a template determining module, configured to determine a target text template in response to a selection operation on the candidate text template;
[0013] an image displaying module, configured to display a target image in the image editing interface in response to a target text-based painting operation on the image to be edited, the target image containing a splicing result area of the target text, wherein the target text represents an editing result of the target text template.
[0014] In a third aspect, the embodiments of the present disclosure further provide an electronic device, which comprises:
[0015] one or more processors;
[0016] a storage device configured to store one or more programs,
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the image editing method according to any embodiment of the present disclosure.
[0018] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to perform the image editing method according to any embodiment of the present disclosure.
[0019] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, which comprises a computer program, and the computer program, when executed by a processor, implements the image editing method according to any embodiment of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0020] The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent upon reading the following detailed description in conjunction with the accompanying drawings, in which like reference numerals refer to like elements. It is to be understood that the drawings are designed solely for the purpose of illustration and not as a definition of the limits of the disclosure, for which reference should be made only to the appended claims. Specifically, the drawings are not necessarily drawn to scale and that relative dimensions of various elements are shown exaggerated or reduced for clarity.
[0021] FIG. 1 is a flowchart of an image editing method according to an embodiment of the present disclosure;
[0022] FIG. 2 is a schematic diagram of a target interaction interface according to an embodiment of the present disclosure;
[0023] FIG. 3 is a schematic diagram of a text editing interface according to an embodiment of the present disclosure;
[0024] FIG. 4 is a schematic diagram of an image editing device according to an embodiment of the present disclosure; and
[0025] FIG. 5 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail with reference to the drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art.
[0027] It should be understood that each step recited in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "comprising" and variations thereof as used herein are open-ended, and mean "including but not limited to". The term "based on" means "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related terms are defined in a similar manner.
[0029] It should be noted that the terms "first", "second", and the like in the present disclosure are merely used to distinguish different devices, modules or units, and do not imply the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the terms "one", "multiple" in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that "one or more" should be understood unless otherwise explicitly stated in the context.
[0031] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are merely for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0032] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in accordance with relevant laws and regulations.
[0033] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using personal information of the user. Thus, the user can autonomously select whether to provide the personal information to the software or hardware, such as an electronic device, an application program, a server or a storage medium, performing the operation of the technical solution of the present disclosure according to the prompt information.
[0034] As an optional but non-limiting implementation, in response to receiving an active request of a user, the prompt information can be sent to the user in the form of a pop-up window, in which the prompt information can be presented in the form of text. In addition, the pop-up window can also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0035] It can be understood that the above notification and obtaining user authorization process is only illustrative and does not limit the implementation of the present disclosure, and other ways that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0036] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.
[0037] FIG. 1 is a flow diagram of an image editing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the case of selecting a text template in a target interactive interface to perform text stroke on a target object in an image, for example, to the text stroke scene of a person, an animal or an object in an image. Alternatively, it is also applicable to forming a person, an animal or an object in an image by text. The method can be performed by an image editing device, which can be implemented in the form of software and / or hardware, and can be implemented by an electronic device, which can be a mobile terminal or a PC.
[0038] As shown in FIG. 1, the method comprises:
[0039] S110, in response to a triggering operation on a target control in a target interactive interface, an image editing interface is displayed, the image editing interface comprising a candidate text template and an image to be edited.
[0040] In the embodiment of the present disclosure, the image editing interface can represent an interactive interface triggered by the target control for adding a set text special effect to the image to be edited. For example, the image editing interface can represent an interactive interface triggered by the target control for adding a discrete text effect to the edge of the target object in the image to be edited.
[0041] The image editing interface includes a candidate text template, a text input control, and a to-be-edited image, and the like. Optionally, the image editing interface can further include a color option, a font size option, a character spacing option, and a font transparency option, and the like. In order to save the occupied space, the font size option, the character spacing option, and the font transparency option are displayed in a folded form.
[0042] The candidate text template represents text with set attributes that can be used for splicing. Considering that the text can add effects such as calligraphy, inclination, and the like, if the cutting is directly divided according to the number of texts, unexpected effects such as incomplete text display and text truncation can be caused.
[0043] In the embodiment of the present disclosure, when the candidate text template is generated, the preset script is divided word by word, and a plurality of sub-images are generated according to each text. A spliced image obtained by splicing each sub-image is used as a candidate text template. Since each text is a sub-image, adding effects such as calligraphy, inclination, and the like to the text will only edit the sub-image corresponding to each text, and will not affect other texts, thereby reducing the text display problem caused by style adjustment of the text.
[0044] The target interactive interface represents an interactive interface for implementing an image editing operation in a client. In some embodiments, the target client can be an application client, a web client, or a mini-program, and the like.
[0045] The target control is used to represent an operation for displaying an image editing interface. If a trigger operation for the target control is detected, the image editing interface is displayed. The trigger operation can be a click operation, a gesture operation, a voice operation, or a gaze operation, and the like.
[0046] The to-be-edited image can be an image to be subjected to a smearing operation displayed in the image editing interface. The to-be-edited image can include an image in the image storage control of an electronic device, an image captured by a camera, or an image downloaded from the cloud, and the like.
[0047] Exemplarily, in response to a trigger operation for a target control in a target interactive interface, an image editing interface is displayed, including: displaying a target object in the target interactive interface, the target object including a material template or a tab; displaying a target control at a set position of the target object; and in response to a trigger operation for the target control, displaying the image editing interface.
[0048] If the target interactive interface includes a material template, the target control is displayed in the display area of the material template. In response to a trigger operation for the target control, the image editing interface is displayed. The material template can include a line with a set style. The embodiment of the present disclosure does not specifically limit the display position of the target control in the target interactive interface.
[0049] FIG. 2 is a schematic diagram of a target interaction interface according to an embodiment of the present disclosure. As shown in FIG. 2, the target interaction interface 210 includes a material display area 220 and an image display area 230. The candidate material and a target control 240 are displayed in the material display area 220, and the image to be edited is displayed in the image display area 230. As shown in FIG. 2, the target control 240 is a text brush.
[0050] If the display position of the tab in the navigation bar of the target interaction interface is increased by the target control, the image editing interface is displayed in response to the triggering operation on the target control.
[0051] For example, the target control can be displayed in the navigation bar of the target interaction interface. In response to the click operation on the target control, the image editing interface is jumped to. The image editing interface includes thumbnails of candidate text templates and a text input control. If it is detected that the target control is clicked, the spliced image corresponding to each candidate text template is obtained, and the thumbnail corresponding to each spliced image is generated. The thumbnails of the candidate text templates are displayed in the material display area in the image editing interface. The text input control is displayed above the material display area in the image editing interface.
[0052] S120, in response to a selection operation on the candidate text template, determining a target text template.
[0053] The target text template represents the selected candidate text template. Since the text content of the candidate text template has a set mapping relationship with the content displayed in the text input control, after the target text template is selected, the text content to be edited of the target text template can be displayed in the corresponding position of the text input control.
[0054] For example, the target text template is determined in response to the selection operation on the candidate text template, including: in response to the selection operation on the candidate text template, the selected candidate text template is taken as the target text template, and the text content to be edited of the target text template is displayed in the corresponding position of the text input control.
[0055] S130, in response to a target text-based smearing operation on the image to be edited, displaying a target image in the image editing interface, the target image containing a spliced result area of the target text, wherein the target text represents the editing result of the target text template.
[0056] The smearing operation is an operation of editing the image to be edited by using the target text. For example, the smearing operation includes a finger sliding operation input in the image editing interface. Alternatively, the smearing operation on the image to be edited can also be realized by a movement operation of a gaze point in the image editing interface.
[0057] In the embodiments of the present disclosure, the target image representation takes the splicing result of the target text as an image of a frame of a person, an animal or an object in the to-be-edited image. Alternatively, the target image representation takes the splicing result of the target text to constitute an image of a person, an animal or an object in the to-be-edited image.
[0058] In some embodiments, if no editing operation is detected within a set time period after the target text template is selected, the attribute setting item of the hiding color option, the font size option and the like is confirmed to be based on the text in the target text template for erasing, so as to avoid occlusion to the to-be-edited image and affect the erasing operation on the to-be-edited image. Then, in response to the erasing operation on the to-be-edited image based on the text in the target text template, the target image is displayed in the image editing interface.
[0059] In some embodiments, in response to the erasing operation on the to-be-edited image based on the target text, the target image is displayed in the image editing interface, including: in response to the input editing operation, determining the target text; in response to the erasing operation on the to-be-edited image, splicing the target text based on the erasing track to obtain the target image, and displaying the target image in the image editing interface.
[0060] In some embodiments, the editing operation represents a text editing operation. For example, the editing operation includes at least one of a content updating operation, a font updating operation and a style updating operation. The target text represents an editing result of the target text template.
[0061] For example, in response to the input editing operation, the target text is determined, including: in response to an editing trigger operation in the image editing interface, a text editing interface is displayed, wherein the text editing interface includes a text input control, a font editing control and a style editing control. In response to the input editing operation on at least one of the text input control, the font editing control and the style editing control, the editing information corresponding to the editing operation is obtained. The target text is determined in combination with the editing information and the target text template, and the target text is displayed.
[0062] For example, the editing trigger operation is triggered by a click operation on the text input control displayed in the image editing interface. For example, a text box in the image editing interface is clicked to trigger the editing trigger operation, and the text editing interface is displayed.
[0063] The text input control is used to input text. For example, the text input control can be a text box, etc. The font editing control includes font options. The style editing control includes options such as calligraphy style, stroke, shadow, color, font size, word spacing, and font transparency. In order to save space, the font size option, the word spacing option, and the font transparency option are displayed in a folded form. Alternatively, a slide bar control can be used to realize the font size option, the word spacing option, and the font transparency option.
[0064] In some embodiments, if a triggering operation for the text input control is detected, a keyboard is displayed. In response to an input operation for the keyboard, the input text is displayed in the text input control in real time, and the target text is determined by using the input text in combination with the text attributes corresponding to the target text template. The target text is displayed through a text layer. The content of the text layer refers to text content combined with the font, style, and other effects set by the user. Alternatively, the text editing interface can also include a cancel option and a restore option. By clicking the cancel option, the modification of the text content in the text input control is cancelled to display the content before the current text input operation. By clicking the restore option, the input text is displayed in the text input control.
[0065] If a confirmation operation for the target text is detected, an image editing interface is displayed to prepare for a smearing operation. In the case where the text content of the target text template does not meet the expectation but the text effect meets the expectation, the target text template is edited through the embodiment to obtain a target text that meets the expectation.
[0066] If a selection operation for the font editing control and / or the style editing control is detected, the keyboard is hidden and an editing item is displayed. The font editing control displays a font editing item in response to a setting operation for the editing item. The style editing control displays a style editing item. In response to a setting operation for the editing item, editing information is obtained, including font information and / or style information. The attributes of the target text are updated according to the font information and / or the style information, and a new target text is determined. The new target text is displayed through a text layer. If a confirmation operation for the target text is detected, an image editing interface is displayed to prepare for a smearing operation. If the font and / or the style do not meet the expectation after editing the text content, the font and / or the style are edited through the embodiment to obtain a target text that meets the expectation.
[0067] If the text content meets the expectation but the text effect does not meet the expectation, the text effect can also be edited through the editing operation input for the font editing control and / or the style editing control to obtain a target text that meets the expectation, which is not specifically limited by the embodiment.
[0068] FIG. 3 is a schematic diagram of a text editing interface according to an embodiment of the present disclosure. As shown in FIG. 3, the text editing interface 310 includes a candidate text template 320, a text input control 330, an image to be edited 340, a font editing control 350, and a style editing control 360. A target text template 321 is selected from the candidate text template 320 displayed in the text editing interface 310, and the text corresponding to the target text template 321 is displayed in the text input control 330.
[0069] The font editing control 350 includes a font option (not shown). The style editing control 360 includes a calligraphy style, a text option, a stroke option, and a shadow option. The text option includes a candidate color, a font size adjustment slider, a transparency adjustment slider, and a character spacing adjustment slider, etc. One or more of content editing, font editing, and style editing can be performed on the text displayed in the text input control 330, and the effect of the editing operation is displayed in real time through a text layer. For example, in response to a selection operation on the calligraphy style, the text layer in the image editing interface displays the calligraphy effect of the text.
[0070] Referring to FIG. 3, by inputting a smearing operation on the image to be edited, a brush stroke (red circle) in the image editing interface moves along the smearing track and draws the target text at the corresponding position of the brush stroke.
[0071] It should be noted that if the length of the target text is less than the length of the smearing track, the target text is repeated to draw the target text along the smearing track. If the length of the target text is greater than the length of the smearing track, the content of the target text is truncated according to the smearing track. If the smearing operation is detected again, the drawing operation continues from the truncated content of the last drawing operation. For example, the target text has a length of 20 characters, and the smearing track has a length of 15 characters. In the image editing interface, 15 characters are drawn. If the smearing operation is detected again, the drawing starts from the 16th character.
[0072] Exemplarily, in response to the smearing operation on the image to be edited, the target text is spliced based on the smearing track to obtain a target image, and the target image is displayed in the image editing interface, including:
[0073] In response to the smearing operation on the image to be edited, a target resource package is obtained, wherein the target resource package represents a file generated based on the target text. The target text is drawn in the image editing interface based on the target resource package and the smearing track, and a target image is generated according to the splicing result of the target text.
[0074] Optionally, the generation manner of the target resource package includes: generating a sub-image corresponding to the target text; obtaining coordinates of the sub-image, and generating a target resource package according to the coordinates and the sub-image.
[0075] Since the expected effect of the smearing operation is to smear continuously according to the text content of the target text, it is necessary to generate a corresponding picture for each text. In the embodiment of the present disclosure, after the target text is encoded, it is segmented word by word to obtain multiple sub-pictures, and the target resource package is generated according to the sub-pictures and the coordinates.
[0076] If an editing operation is input for at least one of the text input control, the font editing control, and the style editing control, a target resource package is generated based on the editing information corresponding to the editing operation and the initial resource package. The initial resource package is the resource package under the initial path.
[0077] After detecting the confirmation operation for the target text, the initial path, the target path, and the text editing information can be passed to the second module by the first module. The first module is used to use the target resource package, that is, to tile the sub-pictures of each text in the target resource package along the trajectory of the user smearing operation. The second module is used to make the target resource package. The initial path represents the address of the initial resource package. The target path is empty and is used to store the generated target resource package. After receiving the initial path, the target path, and the editing information, the second module reads the initial resource package from the initial path, generates the target resource package according to the initial resource package and the editing information, and writes the target resource package under the target path. The first module draws the target text in the image editing interface according to the smearing operation input in the image editing interface.
[0078] In some embodiments, if the editing information includes font information and / or style information, the sub-pictures are generated in combination with the text displayed in the text input control and the editing information; the coordinates of each sub-picture are obtained, and the target resource package is obtained according to the coordinates and the sub-pictures.
[0079] If no text is input for the text input control, and an editing operation is input for the font editing control and / or the style editing control, the editing information includes font information and / or style information. The sub-pictures are generated in combination with the text displayed in the text input control and the editing information. The initial resource package is obtained from the initial address, the coordinates of each sub-picture are obtained according to the initial resource package, the target resource package is obtained according to the coordinates and the sub-pictures. The target resource package is written to the target address, so that after the smearing operation is triggered, the target resource package is read from the target address, and then the target text is drawn in the image editing interface based on the target resource package.
[0080] In some other embodiments, if the editing information includes inputted text, font information and / or style information, a sub-image is generated according to the inputted text in combination with the font information, or a sub-image is generated according to the inputted text in combination with the style information, or a sub-image is generated according to the inputted text, the font information and the style information. Coordinates of each sub-image are obtained, and a target resource package is obtained according to the coordinates and the sub-images. The target resource package is written into a target address, so that after the smearing operation is triggered, the target resource package is read from the target address, and then the target text is drawn in the image editing interface based on the target resource package.
[0081] It should be noted that the image editing interface further includes a confirmation control. In response to a click operation on the confirmation control, the spliced result of the target text is saved as a text layer. The text layer can be further subjected to a secondary editing operation. For example, the secondary editing operation includes erasing, repeatedly drawing, adjusting transparency, mixing, masking and the like.
[0082] The technical solution of the embodiments of the present disclosure displays the image editing interface through the target control, selects a target text template from the candidate text templates of the image editing interface, and then determines a target text by editing the target text template, so that the target text is drawn to the image editing interface in the process of performing the smearing operation on the image to be edited, to obtain a target image. Since the candidate text templates include texts with pre-set font and style attributes, the candidate text templates or the edited candidate text templates can be directly used to obtain the target text that meets the editing expectation. The diversified editing expectation is achieved by smearing the text track in the image editing interface, the image editing efficiency is improved, and the image display effect is improved.
[0083] FIG. 4 is a structural schematic diagram of an image editing device provided by an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware, and can be implemented by an electronic device, which can be a mobile terminal or a PC terminal.
[0084] As shown in FIG. 4, the device includes a template display module 410, a template determination module 420 and an image display module 430.
[0085] The template display module 410 is configured to display an image editing interface in response to a triggering operation on a target control in a target interactive interface, the image editing interface including a candidate text template and an image to be edited, wherein the candidate text template represents a text with set attributes that can be used for splicing.
[0086] The template determination module 420 is configured to determine a target text template in response to a selection operation on the candidate text template.
[0087] The image display module 430 is configured to display a target image in the image editing interface in response to a target-text-based painting operation on the image to be edited, the target image containing a spliced result area of the target text, wherein the target text represents an editing result of the target text template.
[0088] Optionally, the template display module 410 is specifically configured to:
[0089] display a target object in the target interaction interface, the target object including a material template or a tab;
[0090] display a target control in a set position of the target object;
[0091] display the image editing interface in response to a triggering operation on the target control.
[0092] Optionally, the image editing interface further includes a text input control.
[0093] The template determination module 420 is specifically configured to:
[0094] display text content to be edited of the target text template in the corresponding position of the text input control in response to a selection operation on the candidate text template.
[0095] Optionally, the image display module 430 is specifically configured to:
[0096] determine a target text in response to an input editing operation;
[0097] splice the target text based on a painting track to obtain a target image in response to a painting operation on the image to be edited, and display the target image in the image editing interface.
[0098] Optionally, the determining a target text in response to an input editing operation includes:
[0099] display a text editing interface in response to an editing triggering operation in the image editing interface, wherein the text editing interface includes a text input control, a font editing control and a style editing control;
[0100] obtain editing information corresponding to an editing operation input in at least one of the text input control, the font editing control and the style editing control;
[0101] determine a target text in combination with the editing information and a target text template, and display the target text.
[0102] Optionally, the target image is obtained based on the target text spliced according to the smearing track in response to the smearing operation on the image to be edited, and the target image is displayed in the image editing interface, including:
[0103] In response to the smearing operation on the image to be edited, a target resource package is obtained, wherein the target resource package represents a file generated based on the target text;
[0104] The target text is drawn in the image editing interface based on the target resource package and the smearing track, and a target image is generated according to a splicing result of the target text.
[0105] Further, the target resource package is generated in the following manner:
[0106] A sub-image corresponding to the target text is generated;
[0107] Coordinates of the sub-image are obtained, and a target resource package is generated according to the coordinates and the sub-image.
[0108] The image editing apparatus provided by the embodiments of the present disclosure can perform the image editing method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of the execution method.
[0109] It should be noted that each unit and module included in the above apparatus is only divided according to the function logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific name of each functional unit is only for convenient distinction, and does not limit the protection scope of the embodiments of the present disclosure.
[0110] FIG. 5 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. Referring to FIG. 5, a structural schematic diagram of an electronic device (for example, a terminal device in FIG. 5) 500 suitable for implementing the embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0111] As shown in FIG. 5, the electronic device 500 can include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 502 or loaded into a random access memory (RAM) 503 from a storage device 508. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0112] Generally, the following devices can be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication devices 509 can allow the electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 5 shows the electronic device 500 with various devices, it should be understood that all of the illustrated devices are not required to be implemented or possessed. More or fewer devices can be alternatively implemented or possessed.
[0113] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 509, or installed from the storage devices 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-described functions defined in the methods of the embodiments of the present disclosure are performed.
[0114] The names of messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0115] The electronic device provided by the embodiments of the present disclosure and the image editing method provided by the above-described embodiments belong to the same inventive concept, and technical details not described in detail in the present embodiments can be referred to the above-described embodiments, and the present embodiments have the same beneficial effects as the above-described embodiments.
[0116] The embodiments of the present disclosure provide a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the image editing method provided by the above-described embodiments.
[0117] Note that the computer readable medium described above in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium can be, for example and without limitation, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the foregoing. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the present disclosure, the computer readable signal medium can include a computer readable program code carried in a baseband or as a part of a carrier wave, in which the computer readable program code is used by or in connection with an instruction execution system, apparatus or device. Such a propagated computer readable signal medium can take various forms, including but not limited to electro-magnetic, optical or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can be used to carry or transmit a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained in the computer readable medium can be transmitted by any suitable medium, including but not limited to wire, cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0118] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.
[0119] The computer readable medium described above can be included in the electronic device; or can exist separately from the electronic device and can be accessed via the electronic device.
[0120] The computer readable medium described above carries one or more programs that, when executed by the electronic device, cause the electronic device to:
[0121] In response to a triggering operation on a target control in a target interaction interface, an image editing interface is displayed, the image editing interface including a candidate text template and an image to be edited, wherein the candidate text template represents a text with a set attribute that can be used for splicing;
[0122] In response to a selection operation on the candidate text template, a target text template is determined;
[0123] In response to a target text-based smearing operation on the image to be edited, a target image is displayed in the image editing interface, the target image including a splicing result area of the target text, wherein the target text represents an editing result of the target text template.
[0124] Computer program code for carrying out operations of the present disclosure can be written in any of one or more programming languages, including object oriented programming languages such as Java, Smalltalk, C++ or conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0125] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified functions. It should also be noted in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks depicted in succession can in fact be executed substantially concurrently or the blocks can sometimes be executed in reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flow diagrams and combinations thereof can be implemented by a dedicated hardware-based system that performs specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The units described in the embodiments of the present disclosure can be implemented by means of software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.
[0127] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0128] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of a program of a processor, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0129] The above description is merely exemplary of the present disclosure and the application of the principles thereof. It is not intended to limit the disclosed concepts to the precise forms disclosed. Rather, it is intended to cover such departures from the present disclosure as come within the scope of the concepts disclosed herein and the patentable scope of the present disclosure. For example, the features described above and in the detailed description are interchangeable between the embodiments so as to be recited in any combination. Accordingly, the disclosed concepts are intended to embrace all such alternatives, modifications and variations as fall within the scope of the present disclosure and the patentable scope of the present disclosure.
[0130] Further, while operations are depicted in a particular, sequential order, this should not be understood as requiring or implying that the operations are performed in the order depicted and described. Many of the operations can in fact be performed in parallel or in any suitably ordered order. In addition, while a particular implementation has been discussed, this should not be understood as a limitation of the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination. Accordingly, the disclosed concepts are intended to embrace all such alternatives, modifications and variations as fall within the scope of the present disclosure and the patentable scope of the present disclosure.
[0131] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. An image editing method, comprising: in response to a triggering operation on a target control in a target interactive interface, displaying an image editing interface, the image editing interface comprising a candidate text template and an image to be edited, wherein the candidate text template represents a text with a set attribute that can be used for splicing; in response to a selection operation on the candidate text template, determining a target text template; in response to a text-based brushing operation on the image to be edited, displaying a target image in the image editing interface, the target image comprising a splicing result area of the target text, wherein the target text represents an editing result of the target text template.
2. The method of claim 1, wherein, The displaying of the image editing interface in response to the triggering operation on the target control in the target interactive interface comprises: displaying a target object in the target interactive interface, the target object comprising a material template or a tab; displaying a target control at a set position of the target object; in response to the triggering operation on the target control, displaying the image editing interface.
3. The method of claim 1 or 2, wherein, The image editing interface further comprises a text input control; The determining of the target text template in response to the selection operation on the candidate text template comprises: in response to the selection operation on the candidate text template, displaying the text content of the target text template to be edited at a corresponding position of the text input control.
4. The method according to any one of claims 1 to 3, wherein, The displaying of the target image in the image editing interface in response to the text-based brushing operation on the image to be edited comprises: in response to an input editing operation, determining a target text; in response to the brushing operation on the image to be edited, splicing the target text based on a brushing track to obtain a target image, and displaying the target image in the image editing interface.
5. The method of claim 4, wherein, The determining of the target text in response to the input editing operation comprises: in response to an editing triggering operation in the image editing interface, displaying a text editing interface, wherein the text editing interface comprises a text input control, a font editing control, and a style editing control; in response to an input editing operation on at least one of the text input control, the font editing control, and the style editing control, obtaining editing information corresponding to the editing operation; determining a target text in combination with the editing information and a target text template, and displaying the target text.
6. The method of claim 4 or 5, wherein, The displaying of the target image in the image editing interface in response to the brushing operation on the image to be edited based on the brushing track comprises: in response to the brushing operation on the image to be edited, obtaining a target resource package, wherein the target resource package represents a file generated based on the target text; based on the target resource package and the brushing track, drawing a target text in the image editing interface, and generating a target image according to a splicing result of the target text.
7. The method of claim 6, wherein, The generation of the target resource package comprises: generating a sub-image corresponding to the target text; obtaining coordinates of the sub-image, and generating a target resource package based on the coordinates and the sub-image.
8. An image editing apparatus, comprising: The template display module is configured to display an image editing interface in response to a triggering operation on a target control in a target interactive interface, the image editing interface including a candidate text template and an image to be edited, wherein the candidate text template represents text with a set attribute that can be used for splicing; The template determination module is configured to determine a target text template in response to a selection operation on the candidate text template; The image display module is configured to display a target image in the image editing interface in response to a target text-based painting operation on the image to be edited, the target image including a splicing result area of the target text, wherein the target text represents an editing result of the target text template. 9.An electronic device, comprising: one or more processors; a storage device configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the image editing method of any one of claims 1-7.
10. A storage medium containing computer-executable instructions, wherein, the computer executable instructions, when executed by a computer processor, perform the image editing method of any one of claims 1-7.
11. A computer program product comprising a computer program, wherein, the computer program, when executed by a processor, implements the image editing method of any one of claims 1-7.
Citation Information
Patent Citations
Path based text creating method
CN103744833A
Character virtual gift giving method, device and equipment and storage medium
CN111698523A
Input display device and display method
CN113268186A
Image special effect processing method and device, equipment and medium
CN114445269A
Program and information processing terminal
JP2019008388A