CN105808586A - Picture data processing method and apparatus - Google Patents

Picture data processing method and apparatus Download PDF

Info

Publication number
CN105808586A
CN105808586A CN201410849744.0A CN201410849744A CN105808586A CN 105808586 A CN105808586 A CN 105808586A CN 201410849744 A CN201410849744 A CN 201410849744A CN 105808586 A CN105808586 A CN 105808586A
Authority
CN
China
Prior art keywords
thumbnail
picture block
index
file
room
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.)
Granted
Application number
CN201410849744.0A
Other languages
Chinese (zh)
Other versions
CN105808586B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410849744.0A priority Critical patent/CN105808586B/en
Publication of CN105808586A publication Critical patent/CN105808586A/en
Application granted granted Critical
Publication of CN105808586B publication Critical patent/CN105808586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Embodiments of the invention provide a picture data processing method and apparatus. The picture data processing method comprises the steps of viewing an index of a database used for storing picture information; determining vacancies in the index; according to a file name of a thumbnail file in a specified directory, determining picture block sizes of all thumbnails stored in the thumbnail file; according to the vacancies in the index and the picture block sizes of all the thumbnails stored in the thumbnail file, determining the positions of the picture blocks of the thumbnails sequentially corresponding to the vacancies in the index; and according to the positions of the picture blocks of the thumbnails, deleting the thumbnails. According to the method, the information security problem caused by recovering the pictures by utilizing the thumbnails of the deleted pictures in the prior art is avoided, redundant data is removed, and the purpose of simplifying a system is achieved.

Description

A kind of image data processing method and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of image data processing method and a kind of image data processes device.
Background technology
Along with developing rapidly of science and technology, we have increasing electronic equipment, for instance notebook computer, mobile phone, panel computer etc..People can utilize these electronic equipments to meet different daily demands.
Such as, people can be undertaken taking pictures and carrying out photo management by these electronic equipments, and the storage of photo generally not only can store the artwork of this photo, also can store the thumbnail of this photo simultaneously, and index in data base, in order to search artwork by indexing and read thumbnail.But, when user carries out photo deletion, for instance, inside user's photograph album, there are 1000 photos, he deletes after 500, and system only can delete the information inside artwork and data base, and thumbnail file can left behind.
But, in prior art, basis has deleted the thumbnail of photo by processing the artwork photo that can obtain correspondence, and above-mentioned the processing mode deleting artwork reservation thumbnail can produce information security issue.
Therefore, a technical problem that those skilled in the art urgently solve it is presently required exactly: how can overcome in prior art and to utilize the thumbnail deleting picture to bring back to life information security issue produced by picture.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of image data processing method, it is possible to reduces in prior art and utilizes the thumbnail deleting picture to bring back to life information security issue produced by picture.
Accordingly, the embodiment of the present invention additionally provides a kind of image data and processes device, in order to ensure realization and the application of said method.
In order to solve the problems referred to above, the invention discloses a kind of image data processing method, including:
Check the index of data base for storing pictorial information;
Determine the room in described index;
Filename according to the thumbnail file under assigned catalogue determines the picture block size of all thumbnails of storage in described thumbnail file;
The position of the picture block of the thumbnail corresponding with the room order in described index is determined according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Described thumbnail is deleted in the position of the picture block according to described thumbnail.
Further, depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
Further, in described thumbnail file, storage has at least two thumbnail that picture block size is identical.
Further, described image block is the memory space that each described thumbnail takies in the described thumbnail file belonging to described thumbnail.
Further, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
Further, the position of the described picture block determining the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file, including:
According to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
The size of the final position of the picture block of the thumbnail according to the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
Memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
Further, described thumbnail is deleted in the position of the described picture block according to described thumbnail, including:
The position of the picture block according to described thumbnail, empties the image data of described thumbnail or replaces the image data of described thumbnail with the image data of designated pictures.
Further, described thumbnail file is ithmb file.
Further, described method is applied to iOS operating system.
The embodiment of the present invention additionally provides a kind of image data and processes device, including:
Unit checked in index, for checking the index of the data base for storing pictorial information;
Unit is determined in room, for determining the room in described index;
Picture block determines unit, for determining the picture block size of all thumbnails of storage in described thumbnail file according to the filename of the thumbnail file under assigned catalogue;
Position determination unit, for determining the position of the picture block of the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Data processing unit, described thumbnail is deleted in the position for the picture block according to described thumbnail.
Further, depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
Further, in described thumbnail file, storage has at least two thumbnail that picture block size is identical.
Further, described image block is the memory space that each described thumbnail takies in the described thumbnail file belonging to described thumbnail.
Further, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
Further, described position determination unit includes:
First determines subelement, for according to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
Second determines subelement, the size according to the final position of the picture block of the thumbnail of the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
3rd determines subelement, and the memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
Further, described data processing unit, specifically for the position of the picture block according to described thumbnail, empty the image data of described thumbnail or replace the image data of described thumbnail with the image data of designated pictures.
Further, described thumbnail file is ithmb file.
Further, described device is applied to iOS operating system.
Compared with prior art, the embodiment of the present invention includes advantages below:
The embodiment of the present invention has deleted, by utilizing, the index room that picture produces in data base, and the storage mode that thumbnail is in thumbnail file, can find and thumbnail file has been deleted thumbnail that picture is corresponding, and then this thumbnail can be removed, this method avoid and prior art utilizes the thumbnail deleting picture to bring back to life information security issue produced by picture, clean up unnecessary redundant data simultaneously, reach the purpose of system weight reducing.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a kind of image data processing method embodiment of the present invention;
Fig. 2 a is the naming method schematic diagram of ios7 thumbnail file in the past in the embodiment of the present invention;
Fig. 2 b is the naming method schematic diagram of ios7 thumbnail file later in the embodiment of the present invention;
Fig. 3 is the picture block of thumbnail storage mode schematic diagram in thumbnail file in the embodiment of the present invention;
Fig. 4 is the method flow diagram of the position of a kind of picture block determining the thumbnail corresponding with the room order in index in the embodiment of the present invention;
Fig. 5 is the method flow diagram of the position of the another kind of picture block determining the thumbnail corresponding with the room order in index in the embodiment of the present invention;
Fig. 6 is the structured flowchart of a kind of image data process device embodiment of the present invention;
Fig. 7 is the structured flowchart of a kind of position determination unit in the embodiment of the present invention.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, it is shown that the flow chart of steps of a kind of image data processing method embodiment of the present invention, specifically may include steps of:
Step 101, checks the index of data base for storing pictorial information.
In the embodiment of the present invention, the artwork of picture is stored in below file in the form of a file, and every pictures is to there being a thumbnail, and different size of thumbnail is respectively stored in the thumbnail file of correspondence, and this thumbnail file can be ithmb compressed file.When searching picture, it is possible to search artwork by the index of data base and read thumbnail.
When system carries out picture deletion, system can delete the artwork of picture, and deletes the information inside data base, but the thumbnail of this picture can remain in inside the compressed file belonging to this thumbnail with free state.
In order to find the thumbnail deleting picture, in this step, this image data processes device and first reads the index of the data base for storing pictorial information, then performs step 102.
Step 102, it is determined that the room in index.
This image data processes device after the index of reading database, index information owing to deleting picture corresponding in data base also can be deleted, so the sequence according to this index, it may be determined that go out the room in this index, room in this index and corresponding deleted picture.
Step 103, determines the picture block size of all thumbnails of storage in thumbnail file according to the filename of the thumbnail file under assigned catalogue.
In the embodiment of the present invention, thumbnail file leaves under assigned catalogue, such as leave in/var/mobile/Media/photoData/Thumbnail catalogue under, be likely to house at least two thumbnail file under this assigned catalogue, each thumbnail file comprise one or more thumbnail.Thumbnail file can be ithmb compressed file.
The filename of each thumbnail file is different, for instance shown in Fig. 2 a~2b, names according to picture size before ios7, and such as 158x158.ithmb, after ios7, name becomes, and relation is 3303:22,3309:64,3319:158,4031:120.In a word, the filename of thumbnail file is corresponding with the pixel value of the thumbnail of storage in thumbnail file, for instance, for the thumbnail file of file 158x158.ithmb by name, the pixel value of all thumbnails comprised in this document is 158.
Thumbnail preserves with the form of picture block in the thumbnail file that it is affiliated, and image block is the memory space that each thumbnail takies in the thumbnail file that it is affiliated.As shown in Figure 3, in thumbnail file, storage has two or more thumbnails that picture block size is identical, the corresponding picture block of every hypertonic sketch map, picture block corresponding to thumbnail is according to the indexed sequential arrangement in data base corresponding to thumbnail in thumbnail file, namely the position that picture block corresponding to thumbnail is in the thumbnail file that it is affiliated is corresponding with the index in data base.
The picture block of the thumbnail of different pixels is in different size, for instance, the picture block that pixel value is the thumbnail of 158 is sized to 50560.The size of the picture block of thumbnail can the pixel value corresponding to filename of thumbnail file belonging to thumbnail be determined.So, the filename of thumbnail file is also corresponding with the picture block size of the thumbnail of storage in thumbnail file.
In this step, it is possible to determine the picture block size of all thumbnails of storage in thumbnail file according to the filename of the thumbnail file under assigned catalogue.
This step 103 can carry out with abovementioned steps 101~102 simultaneously, it is also possible to adjustment order as required, is sequentially carried out.
After above-mentioned steps is determined the picture block size of index room and thumbnail, step 104 can be performed.
Step 104, according to the room in index and in thumbnail file the picture block size of all thumbnails of storage determine with index in the position of picture block of thumbnail corresponding to room order.
Due to thumbnail in the thumbnail file that it is affiliated with the indexed sequential arrangement in data base corresponding to thumbnail, if the room order obtained in index, and the size of the picture block of thumbnail in appointment thumbnail file, the picture block position indexing the thumbnail that double-void is answered in this thumbnail file can be extrapolated.The picture block of this thumbnail extrapolated is the picture block of the thumbnail that artwork has deleted, and is the picture block needing to remove.Wherein, it is intended that thumbnail file can be all of thumbnail file in this system, it is also possible to be one of them thumbnail file, for instance 158x158.ithmb.
Step 105, deletes this thumbnail according to the position of the picture block of thumbnail.
Determine need remove picture block position after, can according to this position, by data dump corresponding for this picture block, thus deleting the thumbnail that this picture block is corresponding.
Concrete, it is possible to the position according to the picture block of this thumbnail, empty the image data of this thumbnail by direct c function or replace the image data of this thumbnail with the image data of designated pictures.
The embodiment of the present invention has deleted, by utilizing, the index room that picture produces in data base, and the storage mode that thumbnail is in thumbnail file, can find and thumbnail file has been deleted thumbnail that picture is corresponding, and then this thumbnail can be removed, this method avoid and prior art utilizes the thumbnail deleting picture to bring back to life information security issue produced by picture, clean up unnecessary redundant data simultaneously, reach the purpose of system weight reducing.
In another embodiment of the invention, according to the room in index and in thumbnail file the picture block size of all thumbnails of storage determine with index in thumbnail corresponding to room order picture block position process in, one way in which, as shown in Figure 4, it is possible to comprise the following steps:
Step 401, according to the room order in index and the product of the picture block size of all thumbnails of storage in thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in index.
The picture block that in thumbnail file, thumbnail is corresponding is arranged in order according to the indexed sequential in data base, as shown in Figure 3, the picture block position that first hypertonic sketch map is corresponding is 0~1* picture block size, the picture block position that second hypertonic sketch map is corresponding is 1* picture block size~2* picture block size, the like.
The then product according to the room order in index with the picture block size of thumbnail, namely can determine that the final position of the sequentially picture block of the thumbnail of correspondence of the room in index, the room order such as indexed is 5, then 5* picture block size is designated as the final position of the thumbnail picture block that this index double-void is answered.
Such as, in 158x158.ithmb thumbnail file, the size of picture block is fixed as 50560, then index room is the final position of the thumbnail picture block of 3 correspondences is 3*50560.
Step 402, the size according to the final position of the picture block of the thumbnail of the room order correspondence in index and the picture block of thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in index.
Calculate forward the position of a picture block size according to the final position determined, namely can determine that the original position of the sequentially picture block of the thumbnail of correspondence of the room in this index.
Step 403, is defined as the picture block of the sequentially corresponding thumbnail in the room in index by the memory space between original position with final position.
The picture block of the thumbnail of the room order correspondence that the memory space between this start-stop position is in index.
After determining this picture block position, can be undertaken emptying or replacing by the data between this start-stop position by direct c function, thus deleting this thumbnail.
In another embodiment, in figure thumbnail file, also have the space of several or tens bytes between the picture block of adjacent thumbnail, the picture block position of thumbnail corresponding to room order that known space should be extrapolated in index in aforementioned manners can be utilized too.
In another embodiment of the invention, according to the room in index and in thumbnail file the picture block size of all thumbnails of storage determine with index in thumbnail corresponding to room order picture block position process in, another way, as it is shown in figure 5, may comprise steps of:
Step 501, according to the size of the picture block of all thumbnails of storage in thumbnail file, it is determined that go out the start-stop position of the picture block of first thumbnail in thumbnail file;In first thumbnail manipulative indexing first.
In this step, it is first determined go out the position of the picture block of first thumbnail made number one in thumbnail file, this picture block position is 0~1* picture block size.
The picture block that in thumbnail file, thumbnail is corresponding is arranged in order according to the indexed sequential in data base, this first thumbnail and manipulative indexing order in first.
Step 502, according to the room order in index, the start-stop position of the picture block of first thumbnail, and the size of the picture block of all thumbnails of storage in thumbnail file, it is determined that go out the start-stop position of the picture block of thumbnail corresponding to the room order in index.
This step according to the start-stop position of the picture block of first thumbnail determined and picture block size, can be extrapolated the start-stop position of the picture block of thumbnail corresponding to the room order in index.
Such as, the picture block position that the first hypertonic sketch map is corresponding is 0~1* picture block size, and the picture block position that the second hypertonic sketch map is corresponding is 1* picture block size~2* picture block size, the like, until the picture block of the thumbnail of the room order correspondence in index.
Certainly, if also having several or tens bytes space between the picture block of adjacent thumbnail, the start-stop position of the picture block of thumbnail corresponding to the room order in index then according to the start-stop position of the picture block of first thumbnail determined, fixed air gap between picture block size and picture block, can be extrapolated.
Such as, the picture block position that first hypertonic sketch map is corresponding is 0~1* picture block size, the picture block position that second hypertonic sketch map is corresponding is 1* picture block size+fixed air gap~2* picture block size+fixed air gap, the picture block position that 3rd hypertonic sketch map is corresponding is 2* picture block size+2* fixed air gap~3* picture block size+2* fixed air gap, the like, until the picture block of the thumbnail of the room order correspondence in index.
After determining this picture block position, can be undertaken emptying or replacing by the data between this start-stop position by direct c function, thus deleting this thumbnail.
Said method embodiment can apply to iOS operating system.
It should be noted that, for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 6, it is shown that a kind of image data of the present invention processes the structured flowchart of device embodiment, specifically can include such as lower unit:
Unit 601 checked in index, for checking the index of the data base for storing pictorial information.
Unit 602 is determined in room, for determining the room in index.
Picture block determines unit 603, for determining the picture block size of all thumbnails of storage in thumbnail file according to the filename of the thumbnail file under assigned catalogue.
Position determination unit 604, for according to the room in index and in thumbnail file the picture block size of all thumbnails of storage determine with index in the position of picture block of thumbnail corresponding to room order.
Data processing unit 605, this thumbnail is deleted in the position for the picture block according to thumbnail.
In the embodiment of the present invention, this device is utilized by said units and deletes the index room that picture produces in data base, and the storage mode that thumbnail is in thumbnail file, can find and thumbnail file has been deleted thumbnail that picture is corresponding, and then this thumbnail can be removed, the device avoids and prior art utilizes the thumbnail deleting picture to bring back to life information security issue produced by picture, clean up unnecessary redundant data simultaneously, reach the purpose of system weight reducing.
In another embodiment of the invention, depositing the thumbnail file that at least two filename is different under this assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
In thumbnail file, storage has at least two thumbnail that picture block size is identical.
Image block is the memory space that each described thumbnail takies in the described thumbnail file belonging to described thumbnail.
The filename of thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, and wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
Thumbnail file is ithmb file.
In another embodiment, data processing unit 605, specifically may be used for the position of picture block according to described thumbnail, empty the image data of described thumbnail or replace the image data of described thumbnail with the image data of designated pictures.
In another embodiment of the invention, as it is shown in fig. 7, position determination unit 604 may further include:
First determines subelement 701, for according to the room order in index and the product of the picture block size of all thumbnails of storage in thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in index.
Second determines subelement 702, the size according to the final position of the picture block of the thumbnail of the room order correspondence in index and the picture block of thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in index.
3rd determines subelement 703, and the memory space between original position with final position is defined as the picture block of the sequentially corresponding thumbnail in the room in index.
Said apparatus can apply to iOS operating system.
The embodiment of the present invention additionally provides:
A1, a kind of image data processing method, it is characterised in that including:
Check the index of data base for storing pictorial information;
Determine the room in described index;
Filename according to the thumbnail file under assigned catalogue determines the picture block size of all thumbnails of storage in described thumbnail file;
The position of the picture block of the thumbnail corresponding with the room order in described index is determined according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Described thumbnail is deleted in the position of the picture block according to described thumbnail.
A2, method according to A1, it is characterised in that depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
A3, method according to A1, it is characterised in that in described thumbnail file, storage has at least two thumbnail that picture block size is identical.
A4, method according to A1, it is characterised in that described image block is the memory space that each described thumbnail takies in the described thumbnail file belonging to described thumbnail.
A5, method according to A1, it is characterized in that, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
A6, method according to A1, it is characterized in that, the position of the described picture block determining the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file, including:
According to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
The size of the final position of the picture block of the thumbnail according to the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
Memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
A7, method according to A1, it is characterised in that described thumbnail is deleted in the position of the described picture block according to described thumbnail, including:
The position of the picture block according to described thumbnail, empties the image data of described thumbnail or replaces the image data of described thumbnail with the image data of designated pictures.
A8, method according to any one in A1 to A7, it is characterised in that described thumbnail file is ithmb file.
A9, method according to any one in A1 to A7, it is characterised in that described method is applied to iOS operating system.
A10, a kind of image data process device, it is characterised in that including:
Unit checked in index, for checking the index of the data base for storing pictorial information;
Unit is determined in room, for determining the room in described index;
Picture block determines unit, for determining the picture block size of all thumbnails of storage in described thumbnail file according to the filename of the thumbnail file under assigned catalogue;
Position determination unit, for determining the position of the picture block of the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Data processing unit, described thumbnail is deleted in the position for the picture block according to described thumbnail.
A11, device according to A10, it is characterised in that depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
A12, device according to A10, it is characterised in that in described thumbnail file, storage has at least two thumbnail that picture block size is identical.
A13, device according to A10, it is characterised in that described image block is the memory space that each described thumbnail takies in the described thumbnail file belonging to described thumbnail.
A14, device according to A10, it is characterized in that, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
A15, device according to A10, it is characterised in that described position determination unit includes:
First determines subelement, for according to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
Second determines subelement, the size according to the final position of the picture block of the thumbnail of the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
3rd determines subelement, and the memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
A16, device according to A10, it is characterised in that described data processing unit, specifically for the position of the picture block according to described thumbnail, empty the image data of described thumbnail or replace the image data of described thumbnail with the image data of designated pictures.
A17, device according to any one in A10 to A16, it is characterised in that described thumbnail file is ithmb file.
A18, device according to any one in A10 to A16, it is characterised in that described device is applied to iOS operating system.
For device embodiment, due to itself and embodiment of the method basic simlarity, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification all adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or computer program.Therefore, the embodiment of the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect.And, the embodiment of the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The embodiment of the present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, terminal unit (system) and computer program describe.It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminal equipment so that the instruction performed by the processor of computer or other programmable data processing terminal equipment is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing terminal equipment work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment, make on computer or other programmable terminal equipment, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable terminal equipment provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art are once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of range of embodiment of the invention.
Finally, it can further be stated that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or terminal unit not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or terminal unit.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Above a kind of image data processing method provided by the present invention and a kind of image data are processed device, it is described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. an image data processing method, it is characterised in that including:
Check the index of data base for storing pictorial information;
Determine the room in described index;
Filename according to the thumbnail file under assigned catalogue determines the picture block size of all thumbnails of storage in described thumbnail file;
The position of the picture block of the thumbnail corresponding with the room order in described index is determined according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Described thumbnail is deleted in the position of the picture block according to described thumbnail.
2. method according to claim 1, it is characterised in that depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
3. method according to claim 1, it is characterized in that, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
4. method according to claim 1, it is characterized in that, the position of the described picture block determining the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file, including:
According to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
The size of the final position of the picture block of the thumbnail according to the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
Memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
5. method as claimed in any of claims 1 to 4, it is characterised in that described method is applied to iOS operating system.
6. an image data processes device, it is characterised in that including:
Unit checked in index, for checking the index of the data base for storing pictorial information;
Unit is determined in room, for determining the room in described index;
Picture block determines unit, for determining the picture block size of all thumbnails of storage in described thumbnail file according to the filename of the thumbnail file under assigned catalogue;
Position determination unit, for determining the position of the picture block of the thumbnail corresponding with the room order in described index according to the picture block size of all thumbnails of storage in the room in described index and described thumbnail file;
Data processing unit, described thumbnail is deleted in the position for the picture block according to described thumbnail.
7. device according to claim 6, it is characterised in that depositing the thumbnail file that at least two filename is different under described assigned catalogue, the filename of described thumbnail file is corresponding with the picture block size of the thumbnail of storage in described thumbnail file.
8. device according to claim 6, it is characterized in that, the filename of described thumbnail file is corresponding with the pixel value of the thumbnail of storage in described thumbnail file, wherein, the pixel value corresponding to filename of the size of the picture block of described thumbnail thumbnail file belonging to described thumbnail is determined.
9. device according to claim 6, it is characterised in that described position determination unit includes:
First determines subelement, for according to the room order in described index and the product of the picture block size of all thumbnails of storage in described thumbnail file, it is determined that go out the final position of the picture block of thumbnail corresponding to the room order in described index;
Second determines subelement, the size according to the final position of the picture block of the thumbnail of the room order correspondence in described index and the picture block of described thumbnail, it is determined that go out the original position of the picture block of thumbnail corresponding to the room order in described index;
3rd determines subelement, and the memory space between described original position with described final position is defined as the picture block of the sequentially corresponding thumbnail in the room in described index.
10. the device according to any one in claim 6 to 9, it is characterised in that described device is applied to iOS operating system.
CN201410849744.0A 2014-12-29 2014-12-29 Picture data processing method and device Active CN105808586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849744.0A CN105808586B (en) 2014-12-29 2014-12-29 Picture data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849744.0A CN105808586B (en) 2014-12-29 2014-12-29 Picture data processing method and device

Publications (2)

Publication Number Publication Date
CN105808586A true CN105808586A (en) 2016-07-27
CN105808586B CN105808586B (en) 2021-04-06

Family

ID=56421270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849744.0A Active CN105808586B (en) 2014-12-29 2014-12-29 Picture data processing method and device

Country Status (1)

Country Link
CN (1) CN105808586B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874416A (en) * 2018-09-04 2020-03-10 深圳云天励飞技术有限公司 Image characteristic value storage method and device and electronic equipment
CN112784119A (en) * 2021-01-14 2021-05-11 内蒙古蒙商消费金融股份有限公司 Data query and synchronization optimization method and device
CN116107479A (en) * 2023-03-02 2023-05-12 优视科技有限公司 Picture display method, electronic device and computer storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0987637A2 (en) * 1998-08-31 2000-03-22 Canon Kabushiki Kaisha Image storage method and apparatus
EP1884950A2 (en) * 2006-07-28 2008-02-06 Kabushiki Kaisha Toshiba Image recording and playing system and image recording and playing method
CN101790047A (en) * 2009-01-28 2010-07-28 索尼公司 Image processing equipment, image management device and image management method and program
CN102722307A (en) * 2011-03-29 2012-10-10 腾讯科技(深圳)有限公司 Thumbnail navigation method and apparatus
CN102768662A (en) * 2011-05-05 2012-11-07 阿里巴巴集团控股有限公司 Method and device for loading picture
CN102841896A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Mobile terminal picture and text information displaying method and system and mobile terminal
CN103164432A (en) * 2011-12-13 2013-06-19 联想(北京)有限公司 Method of recovering mistakenly-deleted files and mobile terminal
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
CN103645914A (en) * 2013-11-26 2014-03-19 北京奇虎科技有限公司 Software cleaning method and device
CN103970516A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Superfluous picture deletion method and device
CN104239435A (en) * 2014-08-29 2014-12-24 四川长虹电器股份有限公司 Distributed picture caching method based on picture thumbnail processing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0987637A2 (en) * 1998-08-31 2000-03-22 Canon Kabushiki Kaisha Image storage method and apparatus
EP1884950A2 (en) * 2006-07-28 2008-02-06 Kabushiki Kaisha Toshiba Image recording and playing system and image recording and playing method
CN101790047A (en) * 2009-01-28 2010-07-28 索尼公司 Image processing equipment, image management device and image management method and program
CN102722307A (en) * 2011-03-29 2012-10-10 腾讯科技(深圳)有限公司 Thumbnail navigation method and apparatus
CN102768662A (en) * 2011-05-05 2012-11-07 阿里巴巴集团控股有限公司 Method and device for loading picture
CN102841896A (en) * 2011-06-22 2012-12-26 腾讯科技(深圳)有限公司 Mobile terminal picture and text information displaying method and system and mobile terminal
CN103164432A (en) * 2011-12-13 2013-06-19 联想(北京)有限公司 Method of recovering mistakenly-deleted files and mobile terminal
CN103970516A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Superfluous picture deletion method and device
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
CN103645914A (en) * 2013-11-26 2014-03-19 北京奇虎科技有限公司 Software cleaning method and device
CN104239435A (en) * 2014-08-29 2014-12-24 四川长虹电器股份有限公司 Distributed picture caching method based on picture thumbnail processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘浩阳: "Windows缩略图缓存文件的分析和取证", 《技术研究》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874416A (en) * 2018-09-04 2020-03-10 深圳云天励飞技术有限公司 Image characteristic value storage method and device and electronic equipment
CN110874416B (en) * 2018-09-04 2022-06-24 深圳云天励飞技术有限公司 Image characteristic value storage method and device and electronic equipment
CN112784119A (en) * 2021-01-14 2021-05-11 内蒙古蒙商消费金融股份有限公司 Data query and synchronization optimization method and device
CN112784119B (en) * 2021-01-14 2023-04-28 内蒙古蒙商消费金融股份有限公司 Data query and synchronization optimization method and device
CN116107479A (en) * 2023-03-02 2023-05-12 优视科技有限公司 Picture display method, electronic device and computer storage medium
CN116107479B (en) * 2023-03-02 2024-02-13 优视科技有限公司 Picture display method, electronic device and computer storage medium

Also Published As

Publication number Publication date
CN105808586B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN102722487B (en) File management method and device
US8271544B2 (en) Data file having more than one mode of operation
US9031953B2 (en) Method and system to curate media collections
EP2857990A1 (en) File information previewing method and system
US20130318136A1 (en) Fat directory structure for use in transaction safe file system
CN103297595A (en) Method and device for taking and displaying photos
JP2006092268A (en) Image file recording system and control method for it
CN103310005A (en) Thumbnail display method and device
JP2004120420A (en) Image adjusting device and program
CN104063465A (en) Photo storage method and device
CN105808586A (en) Picture data processing method and apparatus
WO2017096850A1 (en) File system synchronization method and device
CN110865981A (en) File access method for mobile terminal and mobile terminal thereof
CN113448946B (en) Data migration method and device and electronic equipment
CN106202170A (en) Photo management method and photo management systems
CN106201779A (en) Picture processing method and device and mobile terminal
CN104331342A (en) Method for file path matching and the device thereof
CN105808674A (en) Picture display method and device and electronic equipment
CN112559913A (en) Data processing method and device, computing equipment and readable storage medium
US20060100976A1 (en) Method for searching image files
CN105808677A (en) Picture deleting method and device and electronic equipment
CN111143293B (en) Metadata acquisition method, device, equipment and computer readable storage medium
CN106874486A (en) Method and mobile terminal that a kind of Folder Name shows
CN107451277A (en) Image file processing method and device
CN105574157A (en) Photo storage method and equipment

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right

Effective date of registration: 20240116

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right