CN112162711B - Image file conversion method and device, electronic equipment and computer readable medium - Google Patents

Image file conversion method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112162711B
CN112162711B CN202010906592.9A CN202010906592A CN112162711B CN 112162711 B CN112162711 B CN 112162711B CN 202010906592 A CN202010906592 A CN 202010906592A CN 112162711 B CN112162711 B CN 112162711B
Authority
CN
China
Prior art keywords
image file
image
layers
attributes
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010906592.9A
Other languages
Chinese (zh)
Other versions
CN112162711A (en
Inventor
陈文鑫
王博
林浩生
杨兴刚
郭强
唐天旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010906592.9A priority Critical patent/CN112162711B/en
Publication of CN112162711A publication Critical patent/CN112162711A/en
Application granted granted Critical
Publication of CN112162711B publication Critical patent/CN112162711B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • G06F3/1287Remote printer device, e.g. being remote from client or server via internet

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The application provides an image file conversion method, an image file conversion device, electronic equipment and a computer readable medium, and belongs to the technical field of file conversion. The method comprises the following steps: acquiring a first image format of a first image file and printing attributes of all layers in the first image file; configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes of target layers in the first image file, wherein the target printing attributes are printing or non-printing; converting the first image file into a second image file in a second image format through a virtual printer according to the configured printing attributes, wherein the second image format is a format configured by the virtual printer; and according to the identification result of the pixel values in the second image file, obtaining a third image file obtained by converting the first image file which is configured to be printed by the printing attributes of all the image layers. This application improves work efficiency.

Description

Image file conversion method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of file conversion technologies, and in particular, to an image file conversion method and apparatus, an electronic device, and a computer-readable medium.
Background
With the development of informatization, paperless office has become a trend, a user can receive target files in various formats through a terminal and convert the target files into a PDF format for viewing, and in the process of converting the file format, the layer setting in the target files may be changed, so that part of file contents of the target files may be lost in the printing process, and then print attribute configuration and format conversion of the target files need to be performed again, thereby reducing the working efficiency.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image file conversion method, an image file conversion apparatus, an electronic device, and a computer-readable medium, so as to solve the problem of low working efficiency. The specific technical scheme is as follows:
in a first aspect, the present application provides an image file conversion method, including:
acquiring a first image format of a first image file and printing attributes of all layers in the first image file;
configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes of target layers in the first image file, wherein the target printing attributes are printing or non-printing;
converting the first image file into a second image file in a second image format through a virtual printer according to the configured printing attributes, wherein the second image format is a format configured by the virtual printer;
and according to the identification result of the pixel values in the second image file, obtaining a third image file obtained by converting the first image file which is configured to be printed by the printing attributes of all the image layers.
Optionally, the obtaining, according to the result of identifying the pixel values in the second image file, a third image file obtained by converting the first image file in which the print attributes of all image layers are configured to be printed includes:
and under the condition that the pixel value of the second image file is not smaller than a preset pixel threshold value, determining that the printing attributes of all layers of the first image file are configured to be printed, and taking the second image file obtained by converting the first image file as a third image file.
Optionally, the obtaining, according to the result of identifying the pixel values in the second image file, a third image file obtained by converting the first image file in which the print attributes of all image layers are configured to be printed includes:
under the condition that the pixel value of the second image file is smaller than a preset pixel threshold value, configuring the printing attributes of all layers in the first image file to be different from the target printing attributes of a target layer in the first image file;
and converting the first image file which is configured by the printing attributes of all the image layers into a printed first image file into a third image file in the second image format.
Optionally, the acquiring the first image format of the first image file and the print attributes of all layers in the first image file includes:
acquiring a first image format of the first image file sent by kafka;
opening the first image file through a client corresponding to the first image format;
and acquiring the printing attributes of all layers in the first image file.
Optionally, the configuring the print attributes of all layers in the first image file to be the same as the target print attributes of the target layer in the first image file includes:
determining a target printing attribute of a target layer in the first image file;
selecting all image layers in the first image file through a virtual mouse;
and configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes.
Optionally, after obtaining, according to the result of identifying the pixel values in the second image file, a third image file obtained by converting the first image file, in which the print attributes of all image layers are configured to be printed, the method further includes:
and uploading the third image file to a webpage end so as to open the third image file through the webpage end.
In a first aspect, the present application provides an image file conversion apparatus, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first image format of a first image file and printing attributes of all image layers in the first image file;
a configuration module, configured to configure print attributes of all layers in the first image file to be the same as target print attributes of a target layer in the first image file, where the target print attributes are print or non-print;
the conversion module is used for converting the first image file into a second image file in a second image format according to the configured printing attributes through the virtual printer, wherein the second image format is the configured format of the virtual printer;
and the identification module is used for obtaining a third image file obtained by converting the first image file which is configured to be printed by the printing attributes of all the image layers according to the identification result of the pixel values in the second image file.
Optionally, the identification module comprises:
and the determining unit is used for determining that the printing attributes of all layers of the first image file are configured to be printed under the condition that the pixel value of the second image file is not less than a preset pixel threshold value, and taking the second image file obtained by converting the first image file as a third image file.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing any of the method steps described herein when executing the program stored in the memory.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs any of the method steps described herein.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides an image file conversion method, which comprises the following steps: the processor obtains a first image format of a first image file and print attributes of all layers in the first image file, configures the print attributes of all layers in the first image file to be the same as target print attributes of a target layer in the first image file, converts the first image file into a second image file in a second image format according to the configured print attributes through a virtual printer, and obtains a third image file according to an identification result of a pixel value in the second image file. According to the method and the device, the printing attributes of all layers in the first image file are automatically configured to be printed through the processor, manual modification of the printing attributes is not needed, format conversion of the first image file is automatically carried out through the processor, all contents in the first image file are printed, and the working efficiency is improved.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flowchart of a method for converting an image file according to an embodiment of the present disclosure;
fig. 2 is a flowchart of an image file conversion method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an image file conversion apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides an image file conversion method which can be applied to a processor and is used for enabling an image to be printed comprehensively after a format conversion process of an image file.
An image file conversion method provided in the embodiments of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:
step 101: the method comprises the steps of obtaining a first image format of a first image file and printing attributes of all layers in the first image file.
In the embodiment of the application, a processor receives a first image file, and acquires a first image format of the first image file and print attributes of all layers in the first image file. The different image files may be in different image formats including, but not limited to, dwg (DraWing, AutoCAD's image file), exb, cdr (CorelDRAW's proprietary image file format), and plt. The print attributes include print and non-print, and different layers may have different print attributes.
As an optional implementation method, the acquiring a first image format of the first image file and print attributes of all layers in the first image file includes: acquiring a first image format of a first image file sent by kafka; opening a first image file through a client corresponding to the first image format; and acquiring the printing attributes of all layers in the first image file.
In the embodiment of the application, a processor receives a first image file sent by Kafka, the Kafka can realize batch sending and has high-throughput log streams, then the processor obtains a first image format of the first image file, the first image file is opened through a client corresponding to the first image format by clicking a virtual mouse, the first image file comprises a plurality of image layers, and the processor obtains printing attributes of all the image layers, wherein the printing attributes of the image layers comprise printing and non-printing.
Step 102: and configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes of the target layers in the first image file.
Wherein the target print attribute is print or non-print.
In the embodiment of the application, a processor determines a target layer in a first image file, acquires a target printing attribute of the target layer, and configures the printing attributes of all layers in the first image file to be the same as the target printing attribute of the target layer.
As an optional implementation method, configuring the print attributes of all layers in the first image file to be the same as the target print attributes of the target layer in the first image file includes: determining a target printing attribute of a target layer in a first image file; selecting all layers in the first image file through a virtual mouse; and configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes.
In the embodiment of the application, a processor determines a target layer in a first image file and determines a target printing attribute of the target layer, wherein the target printing attribute is printing or non-printing, and the processor cannot identify whether the target printing attribute is printing or non-printing after determining the target printing attribute. The processor selects all layers in the first image file through the virtual mouse, configures the printing attributes of all layers in the first image file to be the same as the target printing attributes, and then the printing attributes of all layers are printing or non-printing.
Illustratively, the processor receives a dwg drawing or an exb drawing, opens the layer setting by moving and clicking a virtual mouse, selects a target layer, selects a target print attribute of the target layer if a left button of the virtual mouse is clicked once, then clicks a right button of the virtual mouse once, selects all layers in the dwg drawing or the exb drawing, and clicks a left button of the virtual mouse once again, so that the print attributes of all the layers are configured to be the same as the target print attribute of the target layer.
The processor receives cdr drawings, an object manager of a window menu is selected through movement and clicking of a virtual mouse, wherein the object manager comprises target printing attributes of target layers, all layers in cdr drawings are selected through cooperation of the virtual mouse and a virtual keyboard, right click of the virtual mouse is performed once, and the printing attributes of all the layers are configured to be the same as the target printing attributes of the target layers.
Step 103: and converting the first image file into a second image file in a second image format through a virtual printer according to the configured printing attributes.
Wherein the second image format is a format in which the virtual printer is configured.
And after the processor configures the printing attributes of all layers in the first image file to be the same as the target printing attributes, converting the first image file in the first image format into a second image file in a second image format through the virtual printer according to the configured printing attributes, wherein the printing attributes of the second image file are the same as the target printing attributes of the first image file and the target layers.
The second image Format of the second image file is a Format after the virtual printer is configured, wherein the image content of the second image Format cannot be changed when the image is browsed, and the second image Format is a PDF (Portable Document Format) Format, for example. The second image format may also be a preset format capable of browsing the second image file, and the preset format is a PDF format, for example.
According to the method and the device, format conversion is carried out through the virtual printer through automatic clicking of the virtual mouse, manual format conversion is not needed, and the working efficiency is improved.
Step 104: and according to the identification result of the pixel values in the second image file, obtaining a third image file obtained by converting the first image file which is configured to be printed by the printing attributes of all the image layers.
And after obtaining a second image file in a second image format, the processor transmits the second image file to an image analyzer in the processor through an http interface, and then judges whether the pixel value of the second image file is not less than a preset pixel threshold value through the image analyzer to obtain two results.
The result is as follows: and under the condition that the pixel value of the second image file is not smaller than a preset pixel threshold value, the processor determines that the printing attributes of all layers of the first image file are configured to be printed, and takes the second image file obtained by converting the first image file as a third image file.
In this embodiment of the present application, if the processor determines that the pixel value of the second image file is not less than the preset pixel threshold, which indicates that there is an image on the current second image file, it indicates that the print attributes of all layers of the second image file are all print, and because the print attributes of all layers of the first image file, all layers of the second image file, and the target layer are the same, the print attributes of all layers of the first image file are all configured to be print, and the target print attribute of the target layer is print.
In addition, because the printing attributes of all layers of the second image file are printing, the image content in the second image file is complete, and the second image file can also ensure the image integrity in the printing process. And the processor takes the second image file obtained by converting the first image file as a third image file so as to ensure the completeness of the image in the printing process of the third image file.
And a second result: under the condition that the pixel value of the second image file is smaller than a preset pixel threshold value, configuring the printing attributes of all layers in the first image file to be different from the target printing attributes of a target layer in the first image file; and converting the first image file which is configured to be printed by the printing attributes of all the image layers into a third image file in a second image format.
In this embodiment of the present application, if the processor determines that the pixel value of the second image file is smaller than the preset pixel threshold, which indicates that no image exists on the current second image file, it indicates that the print attributes of all layers of the second image file are non-printed, and because the print attributes of all layers of the first image file, all layers of the second image file, and the target layer are the same, the print attributes of all layers of the first image file are configured as non-printed, and the target print attribute of the target layer is non-printed.
In order to configure the printing attributes of all layers of the first image file to be printed, the processor configures the printing attributes of all layers in the first image file to be different from the target printing attributes of the target layer in the first image file, so that the printing attributes of all layers of the first image file are configured to be printed, and the processor converts the first image file with the printing attributes configured to be printed into a third image file in a second image format through a virtual printer according to the configured printing attributes.
According to the image file conversion method and device, the first image file is converted to obtain the third image file with the printing attributes of all layers as the printing, the third image file can guarantee the integrity and the comprehensiveness of the printing content when being printed, the printing attributes do not need to be manually set again, and the image file conversion efficiency is improved.
As an optional implementation method, after obtaining, according to the result of identifying the pixel values in the second image file, a third image file obtained by converting the first image file in which the print attributes of all the image layers are configured to be printed, the method further includes: and uploading the third image file to a webpage end so as to open the third image file through the webpage end.
And after the processor obtains a third image file obtained by converting the first image file with the printing attributes of all the image layers configured as printing according to the identification result of the pixel values in the second image file, uploading the third image file to the webpage end so as to open the third image file through the webpage end. The webpage end can be a World Wide Web (World Wide Web) end, the third image file is opened through the WEB end, the third image file does not need to be checked through a corresponding client side, the convenience of checking the file is improved, a user can also open the third image file through a mobile phone, and the file checking mode is increased.
Based on the same technical concept, an embodiment of the present application further provides a flowchart of an image file conversion method, as shown in fig. 2, the flowchart includes:
step 201: the method comprises the steps of obtaining a first image format of a first image file and printing attributes of all layers in the first image file.
Step 202: and configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes of the target layers in the first image file.
Step 203: and converting the first image file into a second image file in a second image format through a virtual printer according to the configured printing attributes.
Step 204: and judging whether the pixel value of the second image file is not less than a preset pixel threshold value. If the pixel value of the second image file is not less than the preset pixel threshold, go to step 205; if the pixel value of the second image file is smaller than the predetermined pixel threshold, step 206 is executed.
Step 205: and determining that the printing attributes of all layers of the first image file are configured to be printed, and taking a second image file obtained by converting the first image file as a third image file.
Step 206: configuring the printing attributes of all layers in the first image file to be different from the target printing attributes of the target layers in the first image file; and converting the first image file which is configured to be printed by the printing attributes of all the image layers into a third image file in a second image format.
Based on the same technical concept, an embodiment of the present application further provides an image file conversion apparatus, as shown in fig. 3, the apparatus including:
an obtaining module 301, configured to obtain a first image format of a first image file and print attributes of all image layers in the first image file;
a configuration module 302, configured to configure print attributes of all layers in the first image file to be the same as target print attributes of a target layer in the first image file, where the target print attributes are print or non-print;
a conversion module 303, configured to convert the first image file into a second image file in a second image format according to the configured printing attributes through the virtual printer, where the second image format is a format configured by the virtual printer;
and the identifying module 304 is configured to obtain, according to the result of identifying the pixel values in the second image file, a third image file obtained by converting the first image file in which the print attributes of all the image layers are configured as print.
Optionally, the identifying module 304 comprises:
and the first determining unit is used for determining that the printing attributes of all layers of the first image file are configured to be printed under the condition that the pixel value of the second image file is not less than the preset pixel threshold value, and taking the second image file obtained by converting the first image file as a third image file.
Optionally, the identifying module 304 comprises:
the first configuration unit is used for configuring the printing attributes of all layers in the first image file to be different from the target printing attributes of the target layer in the first image file under the condition that the pixel value of the second image file is smaller than a preset pixel threshold value;
and the conversion unit is used for converting the first image file with the printing attributes of all the layers configured as printing into a third image file in a second image format.
Optionally, the obtaining module 301 includes:
a first acquiring unit, configured to acquire a first image format of the first image file sent by kafka;
the starting unit is used for opening the first image file through a client corresponding to the first image format;
and the second acquisition unit is used for acquiring the printing attributes of all the layers in the first image file.
Optionally, the configuration module 302 includes:
a second determining unit, configured to determine a target print attribute of a target layer in the first image file;
the selection unit is used for selecting all layers in the first image file through a virtual mouse;
and the second configuration unit is used for configuring the printing attributes of all the layers in the first image file to be the same as the target printing attributes.
Optionally, the apparatus further comprises:
and the opening module is used for uploading the third image file to the webpage end so as to open the third image file through the webpage end.
The embodiment of the application provides an image file conversion method, which comprises the following steps: the processor obtains a first image format of a first image file and print attributes of all layers in the first image file, configures the print attributes of all layers in the first image file to be the same as target print attributes of a target layer in the first image file, converts the first image file into a second image file in a second image format according to the configured print attributes through a virtual printer, and obtains a third image file according to an identification result of a pixel value in the second image file. According to the method and the device, the printing attributes of all layers in the first image file are configured to be printed, so that all contents in the first image file can be printed, and the working efficiency is improved.
Based on the same technical concept, the embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 401, a communication interface 402, a memory 403 and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401 is configured to implement the above steps when executing the program stored in the memory 403.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment provided by the present invention, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the methods described above.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An image file conversion method, characterized in that the method comprises:
acquiring a first image format of a first image file and printing attributes of all layers in the first image file;
configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes of target layers in the first image file, wherein the target printing attributes are printing or non-printing;
converting the first image file into a second image file in a second image format through a virtual printer according to the configured printing attributes, wherein the second image format is a format configured by the virtual printer;
and obtaining a third image file obtained by converting the first image file which is configured by the printing attributes of all image layers to be printed according to the identification result of the pixel values in the second image file, wherein the identification result of the pixel values is used for indicating whether an image exists in the second image file, and the image of the third image file is complete.
2. The method according to claim 1, wherein the obtaining of the third image file obtained by converting the first image file with the print attributes of all the image layers configured to be printed according to the recognition result of the pixel values in the second image file comprises:
and under the condition that the pixel value of the second image file is not smaller than a preset pixel threshold value, determining that the printing attributes of all layers of the first image file are configured to be printed, and taking the second image file obtained by converting the first image file as a third image file.
3. The method according to claim 1, wherein the obtaining of the third image file obtained by converting the first image file with the print attributes of all the image layers configured to be printed according to the recognition result of the pixel values in the second image file comprises:
under the condition that the pixel value of the second image file is smaller than a preset pixel threshold value, configuring the printing attributes of all layers in the first image file to be different from the target printing attributes of a target layer in the first image file;
and converting the first image file which is configured by the printing attributes of all the image layers into a printed first image file into a third image file in the second image format.
4. The method according to claim 1, wherein the obtaining the first image format of the first image file and the print attributes of all layers in the first image file comprises:
acquiring a first image format of the first image file sent by kafka;
opening the first image file through a client corresponding to the first image format;
and acquiring the printing attributes of all layers in the first image file.
5. The method of claim 1, wherein configuring print attributes of all layers in the first image file to be the same as target print attributes of target layers in the first image file comprises:
determining a target printing attribute of a target layer in the first image file;
selecting all image layers in the first image file through a virtual mouse;
and configuring the printing attributes of all layers in the first image file to be the same as the target printing attributes.
6. The method according to claim 1, wherein after obtaining a third image file converted from the first image file with all layers having print attributes configured to be printed according to the result of identifying the pixel values in the second image file, the method further comprises:
and uploading the third image file to a webpage end so as to open the third image file through the webpage end.
7. An image file conversion apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first image format of a first image file and printing attributes of all image layers in the first image file;
a configuration module, configured to configure print attributes of all layers in the first image file to be the same as target print attributes of a target layer in the first image file, where the target print attributes are print or non-print;
the conversion module is used for converting the first image file into a second image file in a second image format according to the configured printing attributes through the virtual printer, wherein the second image format is the configured format of the virtual printer;
and the identification module is used for obtaining a third image file obtained by converting the first image file which is configured to be printed by the printing attributes of all the image layers according to the identification result of the pixel values in the second image file, wherein the identification result of the pixel values is used for indicating whether an image exists in the second image file, and the image of the third image file is complete.
8. The apparatus of claim 7, wherein the identification module comprises:
and the determining unit is used for determining that the printing attributes of all layers of the first image file are configured to be printed under the condition that the pixel value of the second image file is not less than a preset pixel threshold value, and taking the second image file obtained by converting the first image file as a third image file.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202010906592.9A 2020-09-01 2020-09-01 Image file conversion method and device, electronic equipment and computer readable medium Active CN112162711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010906592.9A CN112162711B (en) 2020-09-01 2020-09-01 Image file conversion method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010906592.9A CN112162711B (en) 2020-09-01 2020-09-01 Image file conversion method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN112162711A CN112162711A (en) 2021-01-01
CN112162711B true CN112162711B (en) 2021-11-16

Family

ID=73857395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010906592.9A Active CN112162711B (en) 2020-09-01 2020-09-01 Image file conversion method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112162711B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104054047A (en) * 2012-01-16 2014-09-17 夏普株式会社 Image processing device, image forming device, program and storage medium
CN107948455A (en) * 2013-11-28 2018-04-20 夏普株式会社 The control method of image processing system and image processing system
CN110096270A (en) * 2019-05-06 2019-08-06 浙江精工钢结构集团有限公司 A kind of design drawing method for splitting and system based on .NET plug-in unit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090055772A1 (en) * 2007-08-20 2009-02-26 Qiang Huang Systems and methods for accessing a photo print service through a printer driver
US20090180147A1 (en) * 2008-01-15 2009-07-16 Andrew Rodney Ferlitsch Direct Image Printing with Overlayed PDL Data
CN111596873B (en) * 2020-05-29 2024-02-23 珠海奔图电子有限公司 File processing method and device to be printed, file printing control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104054047A (en) * 2012-01-16 2014-09-17 夏普株式会社 Image processing device, image forming device, program and storage medium
CN107948455A (en) * 2013-11-28 2018-04-20 夏普株式会社 The control method of image processing system and image processing system
CN110096270A (en) * 2019-05-06 2019-08-06 浙江精工钢结构集团有限公司 A kind of design drawing method for splitting and system based on .NET plug-in unit

Also Published As

Publication number Publication date
CN112162711A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
CN104112002B (en) A kind of methods, devices and systems of list adaptation
CN111444750B (en) PDF document identification method and device and electronic equipment
US11080322B2 (en) Search methods, servers, and systems
CN107450808B (en) Mouse pointer positioning method of browser and computing device
CN106874271A (en) A kind of method and system that PC webpages are converted to mobile terminal webpage
CN111414727B (en) Editing method and device for PDF document header footer and electronic equipment
CN110413859A (en) Webpage information search method, apparatus, computer equipment and storage medium
CN111177078A (en) Log processing method and device and electronic equipment
CN111209325A (en) Service system interface identification method, device and storage medium
CN112162711B (en) Image file conversion method and device, electronic equipment and computer readable medium
WO2015035899A1 (en) Search methods and terminals
CN111767107A (en) Visual display method and system for information
CN111240948A (en) Experience data processing method and device, computer equipment and storage medium
CN112463398A (en) File transmission method and device, terminal equipment and storage medium
WO2018161761A1 (en) Wireless network access method, terminal and storage medium
US20160179480A1 (en) Computer application development assistance
CN111949184B (en) Method and device for creating document
CN114531340A (en) Log acquisition method and device, electronic equipment, chip and storage medium
CN114490320A (en) Automatic testing method and device, electronic equipment and storage medium
CN112035596A (en) Text submission method, device, equipment and storage medium
CN112765097A (en) Drawing file storage method and device, electronic equipment and storage medium
CN111695371B (en) Table identification method and device, electronic equipment and storage medium
CN116700853B (en) Page display method, device, terminal and storage medium
CN112788091B (en) Document content providing system, document content collecting method, device and equipment
CN110928470B (en) Signature box display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant