CN111221992A - Useless picture determining method and device, electronic equipment and storage medium - Google Patents

Useless picture determining method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111221992A
CN111221992A CN201911419652.8A CN201911419652A CN111221992A CN 111221992 A CN111221992 A CN 111221992A CN 201911419652 A CN201911419652 A CN 201911419652A CN 111221992 A CN111221992 A CN 111221992A
Authority
CN
China
Prior art keywords
picture
names
module
project
name
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.)
Pending
Application number
CN201911419652.8A
Other languages
Chinese (zh)
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201911419652.8A priority Critical patent/CN111221992A/en
Publication of CN111221992A publication Critical patent/CN111221992A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a method and a device for determining useless pictures, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring all picture files in a set project; acquiring all picture contents used in the project; comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project; storing the unused picture name in an unused picture list. In the embodiment of the invention, all picture files in the set project and all picture contents used in the project are obtained, the picture names of all picture files in the project are automatically compared with all picture contents used in the project, and the picture names which are not used in the project are obtained, so that manual searching is not needed, the time for manually searching useless picture resources in the required development is saved, and the development efficiency is improved.

Description

Useless picture determining method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for determining a garbage picture, an electronic device, and a storage medium.
Background
With the continuous increase of services, the packet sizes of various APPs are also increasing. When some APPs release flow downloading limitation, the package is thin. Package slimming in iOS typically involves several strategies: deleting useless codes, deleting useless pictures, compressing resources, reducing unnecessary three-party libraries and the like. The effect of package slimming by deleting useless code is not obvious because, because the code occupies little memory, many useless classes are deleted and the memory of the code is reduced by only a few KB. Although the three-party library reduction does have a significant reduction in package size, in practical applications, the three-party library cannot be deleted for package slimming. Therefore, deleting garbage picture resources is the most effective strategy at present. In the common technology, newly developed demand codes are firstly imported into used picture resources, then codes of useless pictures are manually searched in old codes, and finally the useless codes and the useless picture resources are deleted, so that the purpose of slimming is achieved.
Therefore, in the related art, the useless codes and the useless pictures are manually searched, so that the workload is large, and the efficiency is low.
Therefore, how to accurately determine the useless pictures in the project is a technical problem to be solved at present.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a method for determining a useless picture, so as to solve the technical problems of large workload and low efficiency caused by manually searching codes of the useless picture in the related technology.
Correspondingly, the embodiment of the invention also provides a device for determining unused pictures, electronic equipment and a storage medium, which are used for ensuring the realization and application of the method.
In order to solve the problems, the invention is realized by the following technical scheme:
a first aspect provides a method for determining a garbage picture, the method comprising:
acquiring all picture files in a set project;
acquiring all picture contents used in the project;
comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
storing the unused picture name in an unused picture list.
Optionally, after all the picture files in the setting item are acquired, the method further includes:
judging whether the picture name of each picture file comprises special characters or not;
if the picture name comprises the special character, splitting the picture name according to the special character to obtain all split picture names;
and storing all the picture names obtained after splitting into a picture name list.
Optionally, the method further includes:
and deleting the picture names which are not used in the unused picture list and the pictures corresponding to the picture names.
Optionally, the method further includes:
and if the picture name does not comprise the special character, storing the picture name without the special character into the picture name list.
Optionally, the acquiring all picture files in the setting item includes:
searching a file with a suffix ending in a picture format in a set item;
and traversing the picture files with suffixes ending in the picture format from the folder of the root path.
Optionally, traversing a picture file with a suffix ending in a picture format from a folder of the root path includes:
and traversing the folders of the root path through the script to obtain the picture file with the suffix ending in the picture format.
Optionally, the acquiring all picture contents used in the project includes:
the picture content using all pictures in the project is obtained through the application programming interface Api.
A second aspect provides an apparatus for determining a garbage picture, the apparatus comprising:
the first acquisition module is used for acquiring all picture files in the set project;
the second acquisition module is used for acquiring all picture contents used in the project;
the comparison module is used for comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
a first storage module, configured to store the unused picture name in an unused picture list.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the picture name of each picture file acquired by the first acquiring module comprises a special character or not;
the splitting module is used for splitting the picture name according to the special character when the judging module judges that the picture name comprises the special character, so that all split picture names are obtained;
and the second storage module is used for storing all the picture names split by the splitting module into a picture name list.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the unused picture names in the unused picture list and the pictures corresponding to the picture names.
Optionally, the apparatus further comprises:
and the third storage module is used for storing the picture name without the special character into a picture name list when the judgment module judges that the picture name does not include the special character.
Optionally, the first obtaining module includes:
the searching module is used for searching a file with a suffix ending in a picture format in a set item;
and the traversing module is used for traversing the picture files with suffixes ending in the picture format from the folder of the root path.
Alternatively to this, the first and second parts may,
the traversal module is specifically configured to traverse the folder of the root path through the script to obtain a picture file with a suffix ending in a picture format.
Optionally, the second obtaining module is specifically configured to obtain, through an application programming interface API, picture content using all pictures in the item.
A third aspect provides an electronic device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of determining a garbage picture as described above.
A fourth aspect provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps in the method of determining a garbage picture as described above.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, all picture files in a set project are obtained firstly; acquiring all picture contents used in the project; then comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project; finally, the unused picture name is stored in an unused picture list. That is to say, in the embodiment of the present invention, all picture files in a set project and all picture contents used in the project are obtained, picture names of all picture files in the project and all picture contents used in the project are automatically compared, and picture names not used in the project are obtained, so that manual search is not required, time for manually searching useless picture resources in development is saved, and development efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
Fig. 1 is a flowchart of a method for determining a garbage picture according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for determining a garbage picture according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining a garbage picture according to an embodiment of the present invention;
fig. 4 is another schematic structural diagram of an apparatus for determining a garbage picture according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another structure of an apparatus for determining a garbage picture according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another structure of an apparatus for determining a garbage picture according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart of a method for determining a garbage picture according to an embodiment of the present invention may specifically include the following steps:
step 101: acquiring all picture files in a set project;
step 102: acquiring all picture contents used in the project;
step 103: comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
step 104: storing the unused picture name in an unused picture list
The method for determining the useless pictures provided by the embodiment of the invention can be applied to a mobile terminal, a server, a client, a back end or a system and the like, and is not limited herein.
The following describes in detail specific implementation steps of a method for determining a garbage picture according to an embodiment of the present invention with reference to fig. 1.
Firstly, executing step 101 to obtain all picture files in a set item;
in this step, one way of obtaining the suffix may be to search for a file with the suffix ending in a picture format in the set item; then, the picture file with the suffix ending in the picture format is traversed from the folder of the root path. The setting item in this embodiment may be an application APP, a next data packet, or an operating system, such as an IOS operating system, and the present embodiment is not limited.
That is, in this step, all the picture files in the project need to be searched first, for example, the suffixes of the picture files in the IOS are files ending in the picture format of. png,. jpg,. imageset,. gif, etc., and these files are all called picture files. This type of file then needs to be found out from the folder of the root path. In general, a script may traverse files in a folder of the root path to obtain a picture file, and store the picture file.
Secondly, executing step 102 to obtain all picture contents used in the project;
in this step, all picture contents used by all picture files in the project (i.e. all picture names used in the project) need to be acquired, and in general, when pictures are used, the corresponding picture contents are acquired by using the picture names through an Application Program Interface (API), and after the picture contents are acquired, the picture contents in all the picture files are stored.
It should be noted that, in the actual execution, the step 101 and the step 102 are not in sequence.
Thirdly, executing step 103, comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
in this step, in a normal case, all picture names in the entry acquired in step 101 are stored in a picture name list (PicNamelist), and all picture contents used in the entry file acquired in step 102 are stored in a picture name content list (FilePicNameList), in this step, contents in the two file lists need to be compared, if the FilePicNameList includes a picture name in the PicNamelist, or a picture name in the PicNamelist is found in the FilePicNameList, it is indicated that a picture corresponding to the picture name is used in the entry, and otherwise, it is indicated that the picture corresponding to the picture name is not used in the entry.
Finally, step 104 is executed to store the unused picture names in the unused picture list, and in this step, the picture names that are not used in the item are stored in the unused picture name list (unosedpicnamelist) through the comparison. That is, a picture name list that is not used in the item is acquired.
In the embodiment of the invention, all picture files in a set project are obtained firstly; acquiring all picture contents used in the project; then comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project; finally, the unused picture name is stored in an unused picture list. That is to say, in the embodiment of the present invention, all picture files in a set project and all picture contents used in the project are obtained, picture names of all picture files in the project and all picture contents used in the project are automatically compared, and picture names not used in the project are obtained, so that manual search is not required, time for manually searching useless picture resources in development is saved, and development efficiency is improved.
Referring to fig. 2, another flowchart of a method for determining a garbage picture according to an embodiment of the present invention is shown, where the method includes the following steps:
step 201: acquiring all picture files in a set project;
the step is the same as step 101, and is described in detail above, and will not be described herein again.
Step 202: judging whether the picture name of each picture file comprises a special character, and if the picture name of each picture file comprises the special character, executing a step 203; otherwise, go to step 208;
in this step, it is necessary to determine whether or not the picture name of each picture file acquired in step 201 contains special characters such as "numeral", "" - ",", "" and the like.
It should be noted that, the special characters included in the pictures are referred in this embodiment, and are not limited to the above-mentioned ones, and in practical applications, the special characters may be further refined continuously according to the needs of the items, so as to ensure that the accuracy of the useless pictures stored in the enusedpiconamelist is higher.
Step 203: splitting the picture names according to special characters to obtain all split picture names;
in this step, if it is determined in step 202 that the picture name includes the special characters, the picture name is divided by the special characters, and then all picture names obtained after the division are saved and processed as different picture names.
Step 204: storing all picture names obtained after splitting into a picture name list;
in this step, for convenience of distinction and management, all picture names obtained after splitting may be stored in the picture name list.
Step 205: acquiring all picture contents used in the project;
in this step, all picture contents used in the item (i.e., picture names used in the item) may be stored in the picture content list. The specific steps are the same as step 102, and are described in detail above, and are not described again here.
Step 206: comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
the step is the same as step 103, and is described in detail above, and will not be described herein again.
Step 207: storing the unused picture name in an unused picture list;
the step is the same as step 104, and is described in detail above, and will not be described herein again.
Step 208: and storing the picture names without special characters in a picture name list.
Further, the method may further include:
step 209: and deleting pictures corresponding to the picture names which are not used in the unused picture list.
In the embodiment of the invention, after all the picture files in the set items are obtained, whether the picture name of each picture file comprises a special character is further judged; and if the picture name comprises the special character, splitting the picture name according to the special character to obtain all split picture names, and storing all split picture names into a picture name list. And then comparing the picture names of the picture name list with all picture contents used by the item to obtain picture names which are not used in the item, and storing the picture names which are not used in the picture name list. That is, the accuracy of the unused picture resources in the unused picture list is ensured through the above-described procedure. Furthermore, the picture names which are not used in the unused picture list and the pictures corresponding to the picture names can be deleted, that is, the operation of deleting the useless pictures by mistake is reduced, so that the performability and the execution frequency of deleting the useless pictures in the item (such as App) slimming process are effectively improved, and the size of the item (such as App) packet is reduced.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a schematic structural diagram of an apparatus for determining a garbage picture according to an embodiment of the present invention may specifically include the following modules: a first obtaining module 301, a second obtaining module 302, a comparing module 303 and a first storing module 304, wherein,
the first obtaining module 301 is configured to obtain all picture files in a setting item;
the second obtaining module 302 is configured to obtain all picture contents used in the project;
the comparing module 303 is configured to compare the picture names of all the picture files with all the picture contents used to obtain picture names that are not used in the project;
the first storage module 304 is configured to store the unused picture name in an unused picture list.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: the structure of the determining module 401, the splitting module 402 and the second storing module 403 is schematically shown in fig. 4, wherein,
the determining module 401 is configured to determine whether the picture name of each picture file acquired by the first acquiring module 301 includes a special character;
the splitting module 402 is configured to split the picture name according to the special character when the judging module 401 judges that the picture name includes the special character, so as to obtain all split picture names;
the second storage module 403 is configured to store all the picture names split by the splitting module 402 into a picture name list.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: the deleting module 501 is schematically shown in fig. 5, wherein,
the deleting module 501 is connected to the first storing module 304, and configured to delete an unused picture name in the unused picture list and a picture corresponding to the picture name.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a third memory module 601, the schematic structure of which is shown in fig. 6, wherein,
the third storing module 601 is configured to, when the determining module 401 determines that no special character is included in the picture name, store the picture name without the special character in a picture name list.
Optionally, in another embodiment, on the basis of the above embodiment, the first obtaining module includes: a lookup module and a traversal module (not shown), wherein,
the searching module is used for searching files with suffixes ending in picture formats in set items;
the traversal module is used for traversing the picture file with the suffix ending in the picture format from the folder of the root path.
Optionally, in another embodiment, on the basis of the above embodiment, the traversal module is specifically configured to traverse the folder of the root path through a script to obtain a picture file with a suffix ending in a picture format.
Optionally, in another embodiment, on the basis of the foregoing embodiment, the second obtaining module is specifically configured to obtain, through an application programming interface API, picture content using all pictures in the item.
In the embodiment of the invention, the first acquisition module acquires all picture files in a set project; the second acquisition module acquires all picture contents used in the project; then the comparison module compares the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project; finally, the first storage module stores the unused picture name into an unused picture list. That is to say, in the embodiment of the present invention, all picture files in a set project and all picture contents used in the project are obtained, picture names of all picture files in the project and all picture contents used in the project are automatically compared, and picture names not used in the project are obtained, so that manual search is not required, time for manually searching useless picture resources in development is saved, and development efficiency is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Optionally, an embodiment of the present invention further provides an electronic terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned method for determining a useless picture, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the method for determining a useless picture, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminals (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method, the apparatus, the electronic device and the storage medium for determining a useless picture provided by the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A method for determining a garbage picture, comprising:
acquiring all picture files in a set project;
acquiring all picture contents used in the project;
comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
storing the unused picture name in an unused picture list.
2. The method of claim 1, wherein after all the picture files in the setting item are obtained, the method further comprises:
judging whether the picture name of each picture file comprises special characters or not;
if the picture name comprises the special character, splitting the picture name according to the special character to obtain all split picture names;
and storing all the picture names obtained after splitting into a picture name list.
3. The method of claim 1, further comprising:
and deleting the picture names which are not used in the unused picture list and the pictures corresponding to the picture names.
4. The method of claim 1, further comprising:
and if the picture name does not comprise the special character, storing the picture name without the special character into the picture name list.
5. The method according to any one of claims 1 to 4, wherein the acquiring all picture files in the setting item comprises:
searching a file with a suffix ending in a picture format in a set item;
and traversing the picture files with suffixes ending in the picture format from the folder of the root path.
6. The method of claim 5, wherein traversing the picture file that is suffix-ended in picture format from the folder of the root path comprises:
and traversing the folders of the root path through the script to obtain the picture file with the suffix ending in the picture format.
7. The method according to any one of claims 1 to 4, wherein said obtaining all picture contents used in said project comprises:
the picture content using all pictures in the project is obtained through the application programming interface Api.
8. An apparatus for determining a garbage picture, comprising:
the first acquisition module is used for acquiring all picture files in the set project;
the second acquisition module is used for acquiring all picture contents used in the project;
the comparison module is used for comparing the picture names of all the picture files with all the picture contents used to obtain picture names which are not used in the project;
a first storage module, configured to store the unused picture name in an unused picture list.
9. The apparatus of claim 8, further comprising:
the judging module is used for judging whether the picture name of each picture file acquired by the first acquiring module comprises a special character or not;
the splitting module is used for splitting the picture name according to the special character when the judging module judges that the picture name comprises the special character, so that all split picture names are obtained;
and the second storage module is used for storing all the picture names split by the splitting module into a picture name list.
10. The apparatus of claim 8, further comprising:
and the deleting module is used for deleting the unused picture names in the unused picture list and the pictures corresponding to the picture names.
11. The apparatus of claim 8, further comprising:
and the third storage module is used for storing the picture name without the special character into a picture name list when the judgment module judges that the picture name does not include the special character.
12. The apparatus according to any one of claims 8 to 11, wherein the first obtaining module comprises:
the searching module is used for searching a file with a suffix ending in a picture format in a set item;
and the traversing module is used for traversing the picture files with suffixes ending in the picture format from the folder of the root path.
13. The apparatus of claim 12,
the traversal module is specifically configured to traverse the folder of the root path through the script to obtain a picture file with a suffix ending in a picture format.
14. The apparatus according to any one of claims 8 to 11,
the second obtaining module is specifically configured to obtain, through an application programming interface API, picture content using all pictures in the project.
15. An electronic device, comprising: memory, processor and computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method of determining a garbage picture according to any one of claims 1 to 7.
16. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for determining a garbage picture according to any one of claims 1 to 7.
CN201911419652.8A 2019-12-31 2019-12-31 Useless picture determining method and device, electronic equipment and storage medium Pending CN111221992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419652.8A CN111221992A (en) 2019-12-31 2019-12-31 Useless picture determining method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419652.8A CN111221992A (en) 2019-12-31 2019-12-31 Useless picture determining method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111221992A true CN111221992A (en) 2020-06-02

Family

ID=70831024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419652.8A Pending CN111221992A (en) 2019-12-31 2019-12-31 Useless picture determining method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111221992A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526953A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 WWW transformation technology
CN104540004A (en) * 2015-01-27 2015-04-22 深圳市中兴移动通信有限公司 Video screenshot method and video screenshot device
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN106708565A (en) * 2016-11-29 2017-05-24 武汉斗鱼网络科技有限公司 Method and device for removing useless picture resources in APK (Android Package)
US20180173552A1 (en) * 2016-12-20 2018-06-21 Invensys Systems, Inc. System and method for content - application split
CN109885324A (en) * 2019-02-25 2019-06-14 北京达佳互联信息技术有限公司 A kind of processing method, device, terminal and the storage medium of application program installation kit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526953A (en) * 2009-01-19 2009-09-09 北京跳网无限科技发展有限公司 WWW transformation technology
CN104540004A (en) * 2015-01-27 2015-04-22 深圳市中兴移动通信有限公司 Video screenshot method and video screenshot device
CN106708565A (en) * 2016-11-29 2017-05-24 武汉斗鱼网络科技有限公司 Method and device for removing useless picture resources in APK (Android Package)
US20180173552A1 (en) * 2016-12-20 2018-06-21 Invensys Systems, Inc. System and method for content - application split
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN109885324A (en) * 2019-02-25 2019-06-14 北京达佳互联信息技术有限公司 A kind of processing method, device, terminal and the storage medium of application program installation kit

Similar Documents

Publication Publication Date Title
US9864736B2 (en) Information processing apparatus, control method, and recording medium
CN106547527B (en) JavaScript file construction method and device
CN111061643B (en) SDK cluster compatibility detection method and device, electronic equipment and storage medium
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
CN108563440B (en) Automatic adding method and device of list controller codes and readable storage medium
US10540325B2 (en) Method and device for identifying junk picture files
CN110019067B (en) Log analysis method and system
CN108920691B (en) Front-end static resource management method and device, computer equipment and storage medium
US20170270106A1 (en) Methods and apparatuses for storing file path and accessing local file
CN105786539B (en) File downloading method and device
CN108446110B (en) Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium
CN106776266B (en) Configuration method of test tool and terminal equipment
CN111045698A (en) Redundant picture deleting method and device, electronic equipment and storage medium
CN109472540B (en) Service processing method and device
CN111722865A (en) Resource data processing method and device for application program
CN115080114B (en) Application program transplanting processing method, device and medium
EP2990983B1 (en) Method and apparatus for scanning files
CN111221992A (en) Useless picture determining method and device, electronic equipment and storage medium
CN112579877A (en) Information source system control method, device, storage medium and equipment
US20150347402A1 (en) System and method for enabling a client system to generate file system operations on a file system data set using a virtual namespace
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN109635175B (en) Page data splicing method and device, readable storage medium and electronic equipment
CN110489108B (en) Method and device for automatically collecting reusable components
CN111625397A (en) Service log backup method, cluster, device, electronic equipment and storage medium
CN112307736A (en) Application project creating method, device, 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