Icon batch processing method and device, electronic equipment, storage medium and program product

By configured the target icon template and automated processing, the problem of cumbersome processing process of the old icon resource processing process in the update iteration of video games is solved, and the processing efficiency and consistency are improved.

CN119367771APending Publication Date: 2025-01-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411491679.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

During the update and iteration of electronic games, when old icon resources are processed as new icon resources, there is a problem of non-compliance in parameters, resulting in cumbersome and inefficient processing.

Method used

By configured the pre -defined target icon template, determine the number of target icon parameters that meet the standard of the game project icon, including icon anchor points, zoom, size, and gradient parameters, and automate batch processing icon resources to be processed.

Benefits of technology

This method is compatible with different icons through the template configuration, automation and parallel processing, which significantly improves processing efficiency, reduces the steps of artificial adjustment difference parameters, and reduces error rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119367771A_ABST
    Figure CN119367771A_ABST
Patent Text Reader

Abstract

The invention provides an icon batch processing method and device, electronic equipment, a storage medium and a program product, and is applied to a game item, the method comprises the following steps: determining a to-be-processed icon resource according to an icon resource directory in the game item; on the basis of a pre-configured target icon template, target icon parameters which meet icon making specifications of the game items and are included in the target icon template are determined, and the icon making specifications are used for describing specification requirements of the game items for icon resources; the target icon parameters comprise at least one of the following parameters: an icon anchor point parameter, an icon zooming parameter, an icon size parameter and an icon gradual change parameter; and in response to the template application operation, performing batch processing on the to-be-processed icon resources based on the target icon parameters in the target icon template, and outputting the icon resources matched with the target icon parameters. According to the method and the device, specification differences among different icons are compatible through the configured icon template, batch processing is automatically performed in parallel, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a method, device, electronic device, storage medium and program product for batch processing of icons. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] During the development and operation of electronic games, as the electronic games are updated and iterated, more and more icon resources will be generated. Especially when the operation time of the electronic games is long, the accumulated number of icon resources is extremely large.

[0004] When a major version update is performed on an electronic game, the new icon resources after the update are quite different from the old icon resources before the update. For example, new specifications may be configured for the icon resources, so the old icon resources need to be processed under the new specifications to obtain the new icon resources.

[0005] However, icon resources of different types and after multiple iterations have different specifications and formats, and direct processing may lead to incompatibility or errors. Therefore, in the related art, in order to avoid the problem of parameter non-compliance that may occur when processing old icon resources as new icon resources, when batch processing a large number of old icon resources, it is necessary to first filter out the unqualified old icon resources, and then process the qualified old icon resources, and finally make special adjustments to the unqualified old icon resources one by one.

[0006] However, the above solutions in the related art have the problem of cumbersome procedures, resulting in low efficiency. Summary of the invention

[0007] In view of this, the purpose of the present disclosure is to propose an icon batch processing method, device, electronic device, storage medium and program product, which at least to a certain extent solve one of the technical problems in the related art.

[0008] Based on the above purpose, the first aspect of the exemplary embodiment of the present disclosure provides a method for batch processing of icons, which is applied to a game project, and the method includes:

[0009] Determine the icon resources to be processed according to the icon resource directory in the game project;

[0010] Based on a pre-configured target icon template, determine target icon parameters included in the target icon template that meet the icon production specification of the game project, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters;

[0011] In response to the template application operation, the icon resources to be processed are batch processed based on the target icon parameters in the target icon template, and icon resources matching the target icon parameters are output.

[0012] Based on the same inventive concept, a second aspect of the exemplary embodiment of the present disclosure provides an icon batch processing device, which is applied to a game project, and the device includes:

[0013] A module for determining icon resources to be processed, configured to determine icon resources to be processed according to the icon resource directory in the game project;

[0014] A target icon parameter determination module is configured to determine, based on a pre-configured target icon template, target icon parameters included in the target icon template that meet the icon production specification of the game project, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters;

[0015] The batch processing module is configured to perform batch processing on the icon resources to be processed based on the target icon parameters in the target icon template in response to the template application operation, and output the icon resources matching the target icon parameters.

[0016] Based on the same inventive concept, a third aspect of the exemplary embodiment of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.

[0017] Based on the same inventive concept, a fourth aspect of the exemplary embodiments of the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method described in the first aspect.

[0018] Based on the same inventive concept, a fifth aspect of the exemplary embodiments of the present disclosure provides a computer program product, including computer program instructions. When the computer program instructions are executed on a computer, the computer executes the method described in the first aspect.

[0019] From the above, it can be seen that the icon batch processing method, device, electronic device, storage medium and program product provided by the embodiments of the present disclosure are applied to game projects, and the method includes: determining the icon resources to be processed according to the icon resource directory in the game project; based on the pre-configured target icon template, determining the target icon parameters included in the target icon template that meet the icon production specifications of the game project, wherein the icon production specifications are used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, icon gradient parameters; in response to the template application operation, batch processing is performed on the icon resources to be processed based on the target icon parameters in the target icon template, and the icon resources matching the target icon parameters are output. The icon template configured by the present disclosure is compatible with the specification differences between different icons, and batch processing is performed automatically and in parallel, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 A schematic diagram of the number of icon resources provided for an exemplary embodiment of the present disclosure;

[0022] Figure 2 A schematic diagram of an application scenario of the icon batch processing method provided by the exemplary embodiment of the present disclosure;

[0023] Figure 3 A schematic diagram of a flow chart of a method for batch processing icons provided by an exemplary embodiment of the present disclosure;

[0024] Figure 4 A structural schematic diagram of an icon template configuration interface provided by an exemplary embodiment of the present disclosure;

[0025] Figure 5 A schematic diagram of a structure of an icon output interface provided by an exemplary embodiment of the present disclosure;

[0026] Figure 6 A schematic diagram of an icon output folder provided for an exemplary embodiment of the present disclosure;

[0027] Figure 7 A schematic diagram of a structure of an icon batch processing device provided by an exemplary embodiment of the present disclosure;

[0028] Figure 8 A schematic structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, usage scenarios, etc. of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present application according to the prompt message.

[0031] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0032] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of the present application. Other methods that meet the relevant laws and regulations may also be applied to the implementation method of the present application.

[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0034] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the principles and spirit of the present disclosure will be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0036] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. The article "one" or "a" before an element does not exclude the existence of multiple such elements.

[0037] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure.

[0038] As described in the background technology, during the development and operation of electronic games, as the electronic games are updated and iterated, more and more icon resources will be generated.

[0039] When a major version update is performed on an electronic game, the new icon resources after the update are quite different from the old icon resources before the update. For example, new specifications may be configured for the icon resources. Therefore, it is necessary to update the old icon resources under the new specifications to obtain the new icon resources, such as re-unifying the pixel size of the icon, adjusting the display range, and adjusting the alpha channel parameters in a certain range.

[0040] When the operation time of the video game is long, the number of old icon resources accumulated is large. Figure 1 , as a specific example, the accumulated number of old icon resources reaches 28181.

[0041] In order to avoid the problem of parameter non-compliance when replacing old icon resources with new ones (which may be caused by non-standard production, etc.), in this case, when batch processing a large number of old icon resources, it is necessary to first filter out the unqualified old icon resources, and then process the qualified old icon resources, and finally make special adjustments to the unqualified old icon resources one by one.

[0042] Taking the implementation of the above solution in the related technology through Photoshop (an image processing software) as an example, a series of operations such as action-recording-adjusting parameters-determining action-file path setting-batch processing are required.

[0043] However, it is too complicated for people who have no basic knowledge of the software, and it is difficult to template original resources of different specifications. It may require multiple steps and multiple times, making it difficult to get started.

[0044] In summary, the inventors of the present disclosure have found that the solutions in the related art have the following problems:

[0045] The process of screening non-compliant old resources is cumbersome:

[0046] The icon processing technology in the related art needs to filter out old resources because different resources often have different specifications and formats, and direct processing may lead to incompatibility or errors. For example, some images may not meet the requirements of size, transparency or anchor point position.

[0047] Adapting old resources to new templates will generate many different specifications of differential parameters, which makes the processing cumbersome:

[0048] Related technologies require manual adaptation of resources of different specifications. There may be differences between the new and old templates in terms of size, transparency, anchor points, etc. These differences need to be manually adjusted one by one, resulting in cumbersome difference parameters.

[0049] The difference parameters need to be recorded and adjusted manually, and the processing is prone to errors. Especially when the amount of resources is large, the management and adjustment of the difference parameters becomes more complicated and inefficient.

[0050] There are many process steps, which requires multi-tool collaboration. The error rate is high when there are many difference parameters:

[0051] The processing methods in related technologies may involve multiple tools, such as image editing software, batch processing scripts, and manual adjustment tools. The connection and parameter transfer between the tools are prone to errors. The compatibility between tools, the complexity of parameter transfer and user operations will lead to a high error rate, especially when processing complex difference parameters, where errors are more difficult to avoid.

[0052] In order to solve the above problems, the present disclosure provides a solution for batch processing of icons, which is applied to game projects. The method includes: determining icon resources to be processed according to an icon resource directory in the game project; determining target icon parameters included in the target icon template that meet the icon production specifications of the game project based on a pre-configured target icon template, wherein the icon production specifications are used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters; in response to a template application operation, batch processing the icon resources to be processed based on the target icon parameters in the target icon template, and outputting icon resources that match the target icon parameters.

[0053] The disclosed icon template is configured to be compatible with the specification differences between different icons, and batch processing is performed automatically and in parallel, thereby improving efficiency.

[0054] The reason why the present disclosure does not require screening is that the present disclosure tool sets the template through multiple parameters at one time, automatically aligns and adjusts the size, anchor point and transparency of each icon. Even if there are differences in old resources, the present disclosure tool can also process them uniformly through the preset template to ensure that all output icons meet the specifications.

[0055] The reason why the present invention can solve the problem without screening is that the preset template of the present invention has taken into account various possible specification differences, and automatically adjusts each picture through an intelligent algorithm, thereby avoiding the tedious steps of manual screening, while ensuring that the consistency and quality of the processed icons are not lower than the effect after manual screening.

[0056] The reason why the solution disclosed in the present invention does not need to process the difference parameters is that the tool disclosed in the present invention automatically adapts all icons through intelligent algorithms, and does not need to manually adjust the difference parameters. Various possible resource specifications have been considered when setting the template, and the parameters are automatically adjusted.

[0057] The reason why the solution disclosed in the present invention can solve the problem without processing difference parameters is that it automatically adjusts to ensure that all icons meet the new template specifications without manual intervention, reduces processing steps and error rates, and improves overall efficiency and consistency.

[0058] The reason why the solution disclosed in the present invention does not require the collaboration of multiple tools is that the tool disclosed in the present invention integrates all required functions, and only requires setting up the template once to complete all steps from image processing to batch output, thus avoiding the complexity of multi-tool collaboration.

[0059] The reason why the solution disclosed in the present invention can solve the problem without the collaboration of multiple tools is that the integrated tool reduces the switching and parameter transfer between different software, reduces the operation complexity and the error probability, and the user only needs to perform simple template settings to achieve efficient and consistent icon processing.

[0060] In summary, through the tool's multi-parameter one-time setting template, the tool disclosed in this disclosure solves the problems of old resource screening, difference parameter processing and multi-tool collaboration in traditional icon processing technology. The solution disclosed in this disclosure not only improves processing efficiency, but also ensures the quality and consistency of output icons. At the same time, it is simple to operate and easy to use, which significantly reduces labor costs and the probability of errors.

[0061] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.

[0062] refer to Figure 2, which is a schematic diagram of an application scenario of the icon batch processing method provided by an exemplary embodiment of the present disclosure.

[0063] This application scenario includes a terminal device 101, a server 102, and a data storage system 103. The terminal device 101, the server 102, and the data storage system 103 may be connected via a wired or wireless communication network to achieve data interaction.

[0064] The terminal device 101 may be an electronic device with data transmission and multimedia input / output functions close to the user side, including but not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions. The electronic device may include a processor and a display screen with a touch input function, the display screen is used to present a graphical user interface, the graphical user interface can display an application interface, and the processor is used to process application data, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0065] Server 102 and data storage system 103 can both be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0066] In some exemplary embodiments, the icon batch processing method may be executed on the terminal device 101 or the server 102 .

[0067] When the icon batch processing method is run on the terminal device 101, the terminal device 110 may include a display screen and a processor. The terminal device 110 is installed with a client, through which the user can specify the icon resource directory and configure the target icon template in the game project. The processor determines the icon resources to be processed according to the icon resource directory in the game project; based on the pre-configured target icon template, the target icon parameters included in the target icon template that meet the icon production specifications of the game project are determined, wherein the icon production specifications are used to describe the specification requirements of the game project for the icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters; in response to the template application operation, the icon resources to be processed are batch processed based on the target icon parameters in the target icon template, and the icon resources matching the target icon parameters are output. The client displays the output icon resources matching the target icon parameters to the user through the display screen.

[0068] In the above embodiment, the icon batch processing method is described by taking the case where the icon batch processing method is run on the terminal device 101 as an example. However, the present disclosure is not limited thereto. In some exemplary embodiments, the icon batch processing method may also be run on the server 102 .

[0069] When the icon batch processing method is run on the server 102, the server 102 is used to provide icon batch processing services to the user of the terminal device 101. The terminal device 101 is installed with a client that communicates with the server 102. The user can specify the icon resource directory in the game project and configure the target icon template through the client. The server 102 determines the icon resources to be processed according to the icon resource directory in the game project; based on the pre-configured target icon template, the target icon parameters included in the target icon template that meet the icon production specification of the game project are determined, wherein the icon production specification is used to describe the specification requirements of the game project for the icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters; in response to the template application operation, the icon resources to be processed are batch processed based on the target icon parameters in the target icon template, and the icon resources matching the target icon parameters are output. The server 102 sends the icon resources matching the target icon parameters to the client, and the client displays the icon resources matching the target icon parameters to the user.

[0070] The data storage system 103 is used to assist the terminal device 101 and the server 102 in data storage.

[0071] The icon batch processing method of the embodiment of the present disclosure can be applied to various electronic game GUI icons.

[0072] In specific implementation, electronic game GUI icons include the following types: function icons, item icons, badge icons, control icons, skill icons, etc.

[0073] Among them, the function icon is also called the entry icon, which refers to the entrance of each function in the interface.

[0074] Item icons refer to the icons that represent various props in the game, such as various treasure chests and various experience cards. The equipment in the game also belongs to item icons. There are many types of item icons and the demand is high.

[0075] Control icons refer to, for example, the friend button, setting button, turn on / off button, etc. that appear at the top of the interface.

[0076] Skill icons refer to icons that display skills during battles.

[0077] Badge icon refers to the icon that displays the badge.

[0078] Combine the following Figure 2 The application scenario is used to describe the icon batch processing method according to the exemplary embodiment of the present disclosure. It should be noted that the above application scenario is only shown to facilitate understanding of the spirit and principle of the present disclosure, and the embodiments of the present disclosure are not limited in this respect. On the contrary, the embodiments of the present disclosure can be applied to any applicable scenario.

[0079] refer to Figure 3 , which is a flow chart of a method for batch processing of icons provided by an exemplary embodiment of the present disclosure.

[0080] The icon batch processing method is applied to a game project, and the method comprises the following steps:

[0081] Step S210: Determine the icon resources to be processed according to the icon resource directory in the game project.

[0082] During specific implementation, multiple icon resources to be processed in batches are stored in the icon resource directory.

[0083] During specific implementation, the icon resource directory may be pre-configured or configured in real time.

[0084] During specific implementation, the icon resource directory is configured in the following ways: specifying it in the settings; or specifying it in the configuration file.

[0085] During specific implementation, the configured icon resource directory includes: a local folder path; or a network address.

[0086] Step S220: Based on the pre-configured target icon template, determine the target icon parameters included in the target icon template that meet the icon production specifications of the game project, wherein the icon production specifications are used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters.

[0087] During specific implementation, the target icon template is pre-configured. The specific configuration method is referred to the following embodiment and will not be described in detail here.

[0088] In this exemplary embodiment, the target icon template includes target icon parameters that meet the icon production specifications of the game project, wherein the icon production specifications are used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters.

[0089] Below, these target icon parameters will be introduced one by one:

[0090] Icon anchor point parameters: The anchor point is the positioning point of the icon, which determines the position of the icon on the interface. In the game or application interface, icons usually need to be aligned with other elements. The anchor point can help developers determine the center point, upper left corner, lower right corner and other positions of the icon for accurate placement. When you need to align an icon with text, buttons or other UI elements, you can ensure the icon is positioned accurately by adjusting the anchor point.

[0091] Icon scaling parameters: Scaling parameters are used to control the size of icons. On different devices and resolutions, icons may need to be scaled to accommodate different display requirements. When designing a responsive interface, by setting scaling parameters, you can ensure that icons remain clear and appropriately sized on different screen sizes and resolutions.

[0092] Icon size parameters: The size parameters directly define the width and height of the icon. This is one of the most basic parameters that determines the amount of space the icon takes up on the interface. When designing an interface, by setting the size parameters, you can ensure the coordination and consistency of the icon with other UI elements.

[0093] Icon gradient parameters: Gradient parameters are used to define the color gradient effect of icons. By setting gradient parameters, you can create richer and more dynamic visual effects. In situations where icons need to have more complex visual effects, such as color changes in different states (such as hover, selected, disabled, etc.), gradient parameters can provide more delicate and attractive visual effects.

[0094] Step S230 : In response to the template application operation, batch process the icon resources to be processed based on the target icon parameters in the target icon template, and output icon resources matching the target icon parameters.

[0095] In this exemplary embodiment, when the target icon parameters include icon anchor point parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0096] Determine the horizontal direction anchor point parameters and the vertical direction anchor point parameters among the icon anchor point parameters;

[0097] Performing batch horizontal anchor point alignment processing on the icon resources to be processed based on the horizontal anchor point parameters;

[0098] The icon resources to be processed are subjected to batch vertical anchor point alignment processing based on the vertical anchor point parameters.

[0099] In specific implementation, the icon anchor point parameters: The anchor point is the positioning point of the icon, which determines the position of the icon on the interface. In the game or application interface, icons usually need to be aligned with other elements. The anchor point can help developers determine the center point, upper left corner, lower right corner and other positions of the icon for accurate placement. When you need to align an icon with text, buttons or other UI elements, you can ensure that the icon is positioned accurately by adjusting the anchor point.

[0100] In this exemplary embodiment, when the target icon parameters include icon scaling parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0101] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0102] Multiplying the original size by the icon scaling parameter to obtain a scaled size;

[0103] Based on the scaled size, the icon resource to be processed is scaled to the scaled size.

[0104] In specific implementation, icon scaling parameters: Scaling parameters are used to control the size of icons. On different devices and resolutions, icons may need to be scaled to adapt to different display requirements. When designing a responsive interface, by setting scaling parameters, you can ensure that icons remain clear and appropriately sized on different screen sizes and resolutions.

[0105] During specific implementation, the image scaling ratio is adjusted by stretching.

[0106] In specific implementation, assuming the width (W) and height (H) of the resource, the final resource's (W2, H2) = the original resource's (W1, H1) * parameter scaling factor S (%), all resources are uniformly enlarged or reduced by a certain ratio.

[0107] In this exemplary embodiment, when the target icon parameters include icon size parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0108] determining a target size based on the icon size parameter;

[0109] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0110] In response to determining that the original size is larger than the target size, cropping the icon resource to be processed to the target size;

[0111] or,

[0112] In response to determining that the original size is equal to the target size, not processing the icon resource to be processed;

[0113] or,

[0114] In response to determining that the original size is smaller than the target size, the icon resource to be processed is expanded to the target size based on transparent pixels.

[0115] When implementing, the icon size parameters: The size parameters directly define the width and height of the icon. This is one of the most basic parameters that determines the amount of space the icon occupies on the interface. When designing the interface, by setting the size parameters, you can ensure the coordination and consistency of the icon with other UI elements.

[0116] In the specific implementation, cropping / expansion: after the pixel size (W3, H3) of the final generated image is set, for images whose original image size is larger than the template size (W2, H2)>(W3, H3), the part exceeding the template pixels will be cropped, and for images whose original image size is smaller than the template size (W2, H2)<(W3, H3), transparent pixels will be filled to ensure that the final size of images of different sizes is consistent.

[0117] In this exemplary embodiment, when the target icon parameters include icon gradient parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0118] Determine the horizontal gradient parameter and the vertical gradient parameter of the icon gradient parameter;

[0119] Traversing the horizontal gradient range of the horizontal gradient parameter pixel by pixel to obtain a first opacity;

[0120] Calculate the first gradient interpolation value of the corresponding pixel column;

[0121] Multiplying the first opacity with the first gradient interpolation and a preset parameter to obtain a horizontal opacity of a corresponding pixel;

[0122] Traversing the vertical gradient range of the vertical gradient parameter pixel by pixel to obtain a second opacity;

[0123] Calculate the second gradient interpolation value corresponding to the pixel row;

[0124] The second opacity is multiplied by the second gradient interpolation value and a preset parameter to obtain a vertical opacity of a corresponding pixel.

[0125] In specific implementation, icon gradient parameters: Gradient parameters are used to define the color gradient effect of the icon. By setting gradient parameters, you can create richer and more dynamic visual effects. In situations where icons need to have more complex visual effects, such as color changes in different states (such as hover, selected, disabled, etc.), gradient parameters can provide more delicate and attractive visual effects.

[0126] In specific implementation, the transparency gradient range: the blur range of the template can also be set, the horizontal gradient range of the parameter is traversed pixel by pixel in the horizontal direction, the opacity (0-1) is obtained as alpha_src, and then the gradient interpolation (0-1) of the corresponding pixel column is calculated as alpha_lerp, and the alpha value of the corresponding pixel is set = alpha_src × alpha_lerp × 255, and finally the alpha gradient of a certain range can be realized;

[0127] Traverse the horizontal gradient range of the parameter pixel by pixel in the vertical direction, obtain the opacity (0~1) as alpha_src, then calculate the gradient interpolation (0~1) of the corresponding pixel row as alpha_lerp, set the alpha value of the corresponding pixel = alpha_src×alpha_lerp×255, and finally realize the alpha gradient of a certain range.

[0128] In this exemplary embodiment, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0129] Determine the pre-configured thread pool;

[0130] The batch processing is implemented by performing multi-threaded parallel processing on the icon resources to be processed based on the target icon parameters in the target icon template through the thread pool.

[0131] In specific implementation, the thread pool is determined by:

[0132] Use ready-made thread pool implementations provided by modern programming languages ​​and frameworks, such as Java's ExecutorService and Python's concurrent.futures.ThreadPoolExecutor.

[0133] Alternatively, you can customize the thread pool to implement specific functions based on actual needs.

[0134] The multi-threaded parallel processing provided by the thread pool provided by the above exemplary embodiment improves execution efficiency.

[0135] It can be seen from the above that the icon batch processing method provided in the embodiment of the present disclosure is compatible with the specification differences between different icons through the configured icon template, and automatically performs batch processing in parallel, thereby improving efficiency.

[0136] In the above exemplary embodiment, the target icon template is pre-configured. The following will introduce the configuration method of the target icon template, specifically:

[0137] refer to Figure 4 , a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes an icon template configuration interface, and the icon template configuration interface includes: an alignment anchor point configuration control, a zoom factor configuration control, a target size configuration control (cropping / expansion control) and a transparency gradient range configuration control.

[0138] The following will introduce the icon template configuration operations for the above controls and the parameter information of the target icon template configured based on the icon template configuration operations.

[0139] Next, we will first introduce the alignment anchor configuration controls, specifically:

[0140] In this exemplary embodiment, the icon template configuration interface includes several alignment anchor configuration controls.

[0141] The step of responding to the icon template configuration operation on the icon template configuration interface and configuring a target icon template based on the icon template configuration operation includes:

[0142] In response to a selection operation on any one of the plurality of alignment anchor configuration controls, determining a selected first alignment anchor configuration control;

[0143] Based on the first alignment anchor configuration control, determining an alignment anchor configuration control that cannot be selected among the unselected alignment anchor configuration controls, controlling to adjust the alignment anchor configuration control that cannot be selected to an unselectable state, and controlling to adjust the display mode of the alignment anchor configuration control that cannot be selected to indicate that the alignment anchor configuration control that cannot be selected is in an unselectable state;

[0144] In response to a selection operation on any one of the plurality of alignment anchor configuration controls, determining a selected second alignment anchor configuration control;

[0145] Based on the first alignment anchor configuration control and the second alignment anchor configuration control, alignment anchor information of the target icon template is determined.

[0146] refer to Figure 4 The icon template configuration interface includes six alignment anchor configuration controls, namely: "Left" control, "Right" control, "Top" control, "Bottom" control and two "Middle" controls.

[0147] Among them, the "left" control, "middle" control and "right" control in the first row are controls for controlling the alignment anchor points in the horizontal direction (or horizontal direction);

[0148] The "Top" control, "Middle" control, and "Bottom" control in the second row are controls for controlling the alignment anchor points in the longitudinal direction (or vertical direction).

[0149] Therefore, based on the combination of the above six alignment anchor configuration controls, nine icon template alignment methods can be obtained, namely: top left alignment, left center alignment, bottom left alignment, top center alignment, center center alignment, bottom center alignment, top right alignment, right center alignment and bottom right alignment.

[0150] As a specific example, it is assumed that the “left” control in the first row is selected first, that is, the “left” control in the first row is the selected first alignment anchor configuration control.

[0151] In this case, since one control in the first row that controls the alignment anchor in the horizontal direction has been selected, other controls in the first row that control the alignment anchor in the horizontal direction cannot be selected, that is, the "Middle" control and the "Right" control in the first row are alignment anchor configuration controls that cannot be selected.

[0152] The control adjusts the "middle" and "right" controls in the first row to an unselectable state and adjusts their display mode, which can be blurred, grayscale, etc., to indicate that the "middle" and "right" controls in the first row are in an unselectable state.

[0153] Assume that the "middle" control in the second row is selected first, that is, the "middle" control in the second row is the selected second alignment anchor point configuration control.

[0154] Based on the "left" control in the first row and the "center" control in the second row, the alignment anchor points of the icon template are determined to be "left" and "center", and the alignment mode is: left-center alignment, that is, it is left-aligned in the horizontal direction and center-aligned in the vertical direction.

[0155] In the above exemplary embodiment, the alignment anchor configuration control is introduced. Next, the zoom factor configuration control will be introduced. Specifically:

[0156] In this exemplary embodiment, the icon template configuration interface includes a zoom factor configuration control.

[0157] In specific implementation, the zoom factor configuration control is a text box;

[0158] Then, the zoom factor configuration operation for the zoom factor configuration control is an operation of inputting the zoom factor text in the text box.

[0159] In the above exemplary embodiments, inputting a zoom factor text in a text box is used as an example for description. However, the present disclosure is not limited thereto. In some exemplary embodiments, it can also be implemented by selecting a preset zoom factor in a drop-down list. Specifically:

[0160] In a specific implementation, in response to a first trigger operation on the zoom factor configuration control, the zoom factor configuration control is controlled to display a zoom factor configuration list, wherein the zoom factor configuration list includes a plurality of candidate zoom factors;

[0161] In response to a selection operation on any one of the candidate scaling factors, the selected candidate scaling factor is determined as scaling factor information of the icon template.

[0162] In the above exemplary embodiments, inputting a zoom factor text in a text box and selecting a preset zoom factor in a drop-down list are taken as examples for description, however, the present disclosure is not limited thereto, and in some exemplary embodiments, after the zoom factor is preliminarily determined, the preliminarily determined zoom factor may also be adjusted, specifically:

[0163] In this exemplary embodiment, the zoom factor configuration control includes a zoom factor increase sub-control and a zoom factor decrease sub-control;

[0164] The step of responding to the icon template configuration operation on the icon template configuration interface and configuring a target icon template based on the icon template configuration operation includes:

[0165] In response to a zoom factor input operation or a zoom factor selection operation on the zoom factor configuration control, displaying the input initial zoom factor or the selected initial zoom factor in the zoom factor configuration control;

[0166] In response to a first trigger operation on the zoom factor increase subcontrol, controlling the initial zoom factor to increase according to a preset increase step size;

[0167] and / or,

[0168] In response to a second trigger operation on the zoom factor reduction subcontrol, controlling the initial zoom factor to be reduced according to a preset reduction step size;

[0169] Based on the zoom factor displayed in the zoom factor configuration control, zoom factor information of the target icon template is determined.

[0170] In the above exemplary embodiment, the zoom factor configuration control is introduced. Next, the target size configuration control will be introduced. Specifically:

[0171] In this exemplary embodiment, the icon template configuration interface includes a target size configuration control.

[0172] The step of responding to the icon template configuration operation on the icon template configuration interface and configuring a target icon template based on the icon template configuration operation includes:

[0173] In response to a target size input operation or a target size selection operation for the target size configuration control, displaying the input target size or the selected target size in the target size configuration control;

[0174] Based on the target size displayed in the target size configuration control, target size information of the target icon template is determined.

[0175] In the above exemplary embodiment, the target size configuration control is introduced. Next, the transparency gradient range configuration control will be introduced. Specifically:

[0176] In this exemplary embodiment, the icon template configuration interface includes a transparency gradient range configuration control, and the transparency gradient range configuration control includes a horizontal direction start point sub-control, a horizontal direction end point sub-control, a vertical direction start point sub-control, and a vertical direction end point sub-control;

[0177] The step of responding to the icon template configuration operation on the icon template configuration interface and configuring a target icon template based on the icon template configuration operation includes:

[0178] In response to a position information input operation or a position information selection operation for the horizontal direction starting point subcontrol, the horizontal direction end point subcontrol, the vertical direction starting point subcontrol, and the vertical direction end point subcontrol, the input position information or the selected position information is displayed in the horizontal direction starting point subcontrol, the horizontal direction end point subcontrol, the vertical direction starting point subcontrol, and the vertical direction end point subcontrol;

[0179] Based on the input position information or the selected position information, the transparency gradient range information of the target icon template is determined.

[0180] refer to Figure 4 After confirming the template parameters and setting the icon resource directory to be processed, click the Confirm button to perform batch processing.

[0181] refer to Figure 5 , shows the icon output interface displayed by the graphical user interface, and displays the process information of icon batch processing in the target icon resource directory.

[0182] refer to Figure 6 As a specific example, the processed resources will be output to the _IMG_RESIZE folder at the same level as the source directory.

[0183] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0184] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0185] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides an icon batch processing device.

[0186] refer to Figure 7 , which is a structural schematic diagram of an icon batch processing device provided by an exemplary embodiment of the present disclosure.

[0187] The icon batch processing device is applied to game projects, and the device includes the following modules:

[0188] The icon resource determination module 910 is configured to determine the icon resource to be processed according to the icon resource directory in the game project;

[0189] The target icon parameter determination module 920 is configured to determine the target icon parameters included in the target icon template and meeting the icon production specification of the game project based on the pre-configured target icon template, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters;

[0190] The batch processing module 930 is configured to, in response to a template application operation, batch process the icon resources to be processed based on target icon parameters in the target icon template, and output icon resources matching the target icon parameters.

[0191] In some exemplary embodiments, when the target icon parameters include icon anchor point parameters, the batch processing module 930 is specifically configured as follows:

[0192] Determine the horizontal direction anchor point parameters and the vertical direction anchor point parameters among the icon anchor point parameters;

[0193] Performing batch horizontal anchor point alignment processing on the icon resources to be processed based on the horizontal anchor point parameters;

[0194] The icon resources to be processed are subjected to batch vertical anchor point alignment processing based on the vertical anchor point parameters.

[0195] In some exemplary embodiments, when the target icon parameters include icon scaling parameters, the batch processing module 930 is specifically configured to:

[0196] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0197] Multiplying the original size by the icon scaling parameter to obtain a scaled size;

[0198] Based on the scaled size, the icon resource to be processed is scaled to the scaled size.

[0199] In some exemplary embodiments, when the target icon parameters include icon size parameters, the batch processing module 930 is specifically configured as follows:

[0200] determining a target size based on the icon size parameter;

[0201] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0202] In response to determining that the original size is larger than the target size, cropping the icon resource to be processed to the target size;

[0203] or,

[0204] In response to determining that the original size is equal to the target size, not processing the icon resource to be processed;

[0205] or,

[0206] In response to determining that the original size is smaller than the target size, the icon resource to be processed is expanded to the target size based on transparent pixels.

[0207] In some exemplary embodiments, when the target icon parameters include icon gradient parameters, the batch processing module 930 is specifically configured as follows:

[0208] Determine the horizontal gradient parameter and the vertical gradient parameter of the icon gradient parameter;

[0209] Traversing the horizontal gradient range of the horizontal gradient parameter pixel by pixel to obtain a first opacity;

[0210] Calculate the first gradient interpolation value of the corresponding pixel column;

[0211] Multiplying the first opacity with the first gradient interpolation and a preset parameter to obtain a horizontal opacity of a corresponding pixel;

[0212] Traversing the vertical gradient range of the vertical gradient parameter pixel by pixel to obtain a second opacity;

[0213] Calculate the second gradient interpolation value corresponding to the pixel row;

[0214] The second opacity is multiplied by the second gradient interpolation value and a preset parameter to obtain a vertical opacity of a corresponding pixel.

[0215] In some exemplary embodiments, the batch processing module 930 is specifically configured to:

[0216] Determine the pre-configured thread pool;

[0217] The batch processing is achieved by performing multi-threaded parallel processing on the icon resources to be processed based on the target icon parameters in the target icon template through the thread pool.

[0218] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0219] The device of the above embodiment is used to implement the corresponding icon batch processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0220] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the icon batch processing method described in any of the above embodiments is implemented.

[0221] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0222] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0223] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0224] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0225] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0226] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0227] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0228] The electronic device of the above embodiment is used to implement the corresponding icon batch processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0229] The memory 1020 stores machine-readable instructions executable by the processor 1010. When the electronic device is running, the processor 1010 communicates with the memory 1020 via the bus 1030, so that the processor 1010 executes the following instructions when running:

[0230] Determine the icon resources to be processed according to the icon resource directory in the game project;

[0231] Based on a pre-configured target icon template, determine target icon parameters included in the target icon template that meet the icon production specification of the game project, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters;

[0232] In response to the template application operation, the icon resources to be processed are batch processed based on the target icon parameters in the target icon template, and icon resources matching the target icon parameters are output.

[0233] In a possible implementation, in the instruction executed by the processor 1010, when the target icon parameter includes an icon anchor point parameter, batch processing the icon resources to be processed based on the target icon parameter in the target icon template includes:

[0234] Determine the horizontal direction anchor point parameters and the vertical direction anchor point parameters among the icon anchor point parameters;

[0235] Performing batch horizontal anchor point alignment processing on the icon resources to be processed based on the horizontal anchor point parameters;

[0236] The icon resources to be processed are subjected to batch vertical anchor point alignment processing based on the vertical anchor point parameters.

[0237] In a possible implementation, in the instruction executed by the processor 1010, when the target icon parameter includes an icon scaling parameter, batch processing the icon resources to be processed based on the target icon parameter in the target icon template includes:

[0238] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0239] Multiplying the original size by the icon scaling parameter to obtain a scaled size;

[0240] Based on the scaled size, the icon resource to be processed is scaled to the scaled size.

[0241] In a possible implementation, in the instruction executed by the processor 1010, when the target icon parameter includes an icon size parameter, batch processing the icon resources to be processed based on the target icon parameter in the target icon template includes:

[0242] determining a target size based on the icon size parameter;

[0243] For each of the icon resources to be processed, determining the original size of the icon resource to be processed;

[0244] In response to determining that the original size is larger than the target size, cropping the icon resource to be processed to the target size;

[0245] or,

[0246] In response to determining that the original size is equal to the target size, not processing the icon resource to be processed;

[0247] or,

[0248] In response to determining that the original size is smaller than the target size, the icon resource to be processed is expanded to the target size based on transparent pixels.

[0249] In a possible implementation, in the instruction executed by the processor 1010, when the target icon parameter includes an icon gradient parameter, batch processing the icon resources to be processed based on the target icon parameter in the target icon template includes:

[0250] Determine the horizontal gradient parameter and the vertical gradient parameter of the icon gradient parameter;

[0251] Traversing the horizontal gradient range of the horizontal gradient parameter pixel by pixel to obtain a first opacity;

[0252] Calculate the first gradient interpolation value of the corresponding pixel column;

[0253] Multiplying the first opacity with the first gradient interpolation and a preset parameter to obtain a horizontal opacity of a corresponding pixel;

[0254] Traversing the vertical gradient range of the vertical gradient parameter pixel by pixel to obtain a second opacity;

[0255] Calculate the second gradient interpolation value corresponding to the pixel row;

[0256] The second opacity is multiplied by the second gradient interpolation value and a preset parameter to obtain a vertical opacity of a corresponding pixel.

[0257] In a possible implementation manner, in the instructions executed by the processor 1010, the batch processing of the icon resources to be processed based on the target icon parameters in the target icon template includes:

[0258] Determine the pre-configured thread pool;

[0259] The batch processing is achieved by performing multi-threaded parallel processing on the icon resources to be processed based on the target icon parameters in the target icon template through the thread pool.

[0260] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the icon batch processing method described in any of the above embodiments.

[0261] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0262] The above-mentioned non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0263] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the icon batch processing method described in any embodiment in the above exemplary method part, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0264] Based on the same inventive concept, corresponding to the method for batch processing of icons described in any of the above embodiments, the present disclosure further provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer so that the computer and / or the processor execute the method for batch processing of icons. Corresponding to the execution subject corresponding to each step in each embodiment of the method for batch processing of icons, the processor that executes the corresponding step can belong to the corresponding execution subject.

[0265] The computer program product of the above embodiment is used to enable the computer and / or the processor to execute the icon batch processing method described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0266] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, method, or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." In addition, in some embodiments, the present disclosure may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.

[0267] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.

[0268] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0269] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0270] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0271] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.

[0272] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0273] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0274] In addition, although the operations of the disclosed method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0275] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0276] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0277] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0278] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0279] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0280] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

[0281] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.

Claims

1. A method for batch processing of icons, characterized in that: Applied to game projects, the method includes: Determine the icon resources to be processed according to the icon resource directory in the game project; Based on a pre-configured target icon template, determine target icon parameters included in the target icon template that meet the icon production specification of the game project, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters; In response to the template application operation, the icon resources to be processed are batch processed based on the target icon parameters in the target icon template, and icon resources matching the target icon parameters are output.

2. The method according to claim 1, characterized in that: When the target icon parameters include icon anchor point parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes: Determine the horizontal direction anchor point parameters and the vertical direction anchor point parameters among the icon anchor point parameters; Performing batch horizontal anchor point alignment processing on the icon resources to be processed based on the horizontal anchor point parameters; The icon resources to be processed are subjected to batch vertical anchor point alignment processing based on the vertical anchor point parameters.

3. The method according to claim 1, characterized in that When the target icon parameters include icon scaling parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes: For each of the icon resources to be processed, determining the original size of the icon resource to be processed; Multiplying the original size by the icon scaling parameter to obtain a scaled size; Based on the scaled size, the icon resource to be processed is scaled to the scaled size.

4. The method according to claim 1, characterized in that When the target icon parameters include icon size parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes: determining a target size based on the icon size parameter; For each of the icon resources to be processed, determining the original size of the icon resource to be processed; In response to determining that the original size is larger than the target size, cropping the icon resource to be processed to the target size; or, In response to determining that the original size is equal to the target size, not processing the icon resource to be processed; or, In response to determining that the original size is smaller than the target size, the icon resource to be processed is expanded to the target size based on transparent pixels.

5. The method according to claim 1, characterized in that When the target icon parameters include icon gradient parameters, batch processing the icon resources to be processed based on the target icon parameters in the target icon template includes: Determine the horizontal gradient parameter and the vertical gradient parameter of the icon gradient parameter; Traversing the horizontal gradient range of the horizontal gradient parameter pixel by pixel to obtain a first opacity; Calculate the first gradient interpolation value of the corresponding pixel column; Multiplying the first opacity with the first gradient interpolation and a preset parameter to obtain a horizontal opacity of a corresponding pixel; Traversing the vertical gradient range of the vertical gradient parameter pixel by pixel to obtain a second opacity; Calculate the second gradient interpolation value corresponding to the pixel row; The second opacity is multiplied by the second gradient interpolation value and a preset parameter to obtain a vertical opacity of a corresponding pixel.

6. The method according to claim 1, characterized in that The batch processing of the icon resources to be processed based on the target icon parameters in the target icon template includes: Determine the pre-configured thread pool; The batch processing is implemented by performing multi-threaded parallel processing on the icon resources to be processed based on the target icon parameters in the target icon template through the thread pool.

7. An icon batch processing device, characterized in that: Applied in game projects, the device includes: A module for determining icon resources to be processed, configured to determine icon resources to be processed according to the icon resource directory in the game project; A target icon parameter determination module is configured to determine, based on a pre-configured target icon template, target icon parameters included in the target icon template that meet the icon production specification of the game project, wherein the icon production specification is used to describe the specification requirements of the game project for icon resources, and the target icon parameters include at least one of the following: icon anchor point parameters, icon scaling parameters, icon size parameters, and icon gradient parameters; The batch processing module is configured to perform batch processing on the icon resources to be processed based on the target icon parameters in the target icon template in response to the template application operation, and output the icon resources matching the target icon parameters.

8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises computer program instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 6.