CN104881296A - iOS system based picture deletion method and device - Google Patents

iOS system based picture deletion method and device Download PDF

Info

Publication number
CN104881296A
CN104881296A CN201510337945.7A CN201510337945A CN104881296A CN 104881296 A CN104881296 A CN 104881296A CN 201510337945 A CN201510337945 A CN 201510337945A CN 104881296 A CN104881296 A CN 104881296A
Authority
CN
China
Prior art keywords
picture
information
delete
user
pictures
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
CN201510337945.7A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 CN201510337945.7A priority Critical patent/CN104881296A/en
Publication of CN104881296A publication Critical patent/CN104881296A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides an iOS system based picture deletion method. The iOS system based picture deletion method mainly comprises the following steps of displaying all pictures stored in a system according to picture attribute information classification and receiving user instrument for selecting the stored pictures; obtaining relevant data information according to resource storage addresses of the selected pictures and marking the relevant data information; responding to deletion instruments for deleting the marked pictures and deleting relevant data of the marked pictures. In addition, the invention further provides an iOS system based picture deletion device. The iOS system based picture deletion method and device can be directly used for APP to achieve iOS system based batch picture deletion according to shooting time, places and other information and enable an iOS system user to directly classify, look up and delete the pictures through a third-party application program, the phenomenon that the user can only delete pictures in a program Photos of the system is avoided, and operation performed by the user is more quick and convenient.

Description

Based on image deletion method and the device of iOS system
Technical field
The present invention relates to intelligent mobile terminal Mobile solution field, specifically, the present invention relates to a kind of image deletion method based on iOS system and device.
Background technology
Along with the development of mobile intelligent terminal, the photography and the picture processing application that adapt to mobile terminal configuration also increase increasingly.User carries out in the process of photograph taking or image procossing in use related application, can run into the dissatisfactory situation of gained picture unavoidably, will need to carry out deletion action to these pictures.The delete function of iOS system needs to call privately owned API to realize, but for security consideration, the application of calling privately owned API generally cannot by the examination & verification of Apples Market.Thus, the photo application only having iOS system to carry at present could carry out deletion action to picture, and this brings very big inconvenience to the user using nonsystematic to carry picture application.Meanwhile, the photo application that iOS system carries is when performing picture deletion action, and deleting object needs user oneself to select one by one, cannot carry out batch and select, have certain limitation according to the information such as shooting time, place.
Summary of the invention
Object of the present invention is intended to solve at least one problem above-mentioned, provides a kind of image deletion method based on iOS system, possesses the technical capability of directly deleting picture to make the third party application of iOS system.Accordingly, the present invention also provides a kind of picture delete device based on iOS system.
To achieve these goals, the invention provides following scheme:
Based on an image deletion method for iOS system, comprise the following steps:
According to all pictures stored in image attribute information classified display system, receive the selected user instruction of described picture;
According to its related data information of Resource Storage address acquisition of selected picture, and it is marked;
In response to the delete instruction deleting described mark picture, delete the related data of described mark picture.
Concrete, the related data information of described picture comprises the raw image data information of picture, metadata information, thumbnail data information.
Concrete, described image attribute information comprises the label information of the information characterizing camera site, the information characterizing creation-time, sign continuous shooting picture.
Concrete, be describedly specially to choosing the step that picture marks the variable increasing in the data structure describing this picture and characterize delete flag.
Further, the variable of the sign delete flag of described increase is character string DELETE.
Concrete, the method for described delete flag picture comprises following concrete steps:
Call the primary pictures management interface of iOS, obtain the editing authority of picture;
Call the primary pictures management interface of iOS, obtain the parameter information that the related data of described mark picture is corresponding;
Described parameter is composed null value, replaces the former related data of described mark picture with null value.
Preferably, provide user interface, for showing the picture that continuous shooting generates, to receive selected to wherein any image of user.
Concrete, described continuous shooting picture is the continuous shooting picture of the label information with identical sign continuous shooting picture.
Further, when any image in described continuous shooting picture is selected, oppositely mark other continuous shooting pictures except chosen picture.
Further, according to said method, deletion action is performed to the continuous shooting picture of described reverse mark.
Based on a picture delete device for iOS system, comprising:
Interactive unit, for according to all pictures stored in image attribute information classified display system, receives the selected user instruction of described picture;
Indexing unit, for its related data information of Resource Storage address acquisition according to selected picture, and marks it;
Delete cells, in response to the delete instruction deleting described mark picture, deletes the related data of described mark picture.
Concrete, the related data information of described picture comprises the raw image data information of picture, metadata information, thumbnail data information.
Concrete, described image attribute information comprises the label information of the information characterizing camera site, the information characterizing creation-time, sign continuous shooting picture.
Concrete, be describedly specially to choosing the step that picture marks the variable increasing in the data structure describing this picture and characterize delete flag.
Further, the variable of the sign delete flag of described increase is character string DELETE.
Concrete, described delete cells comprises:
Authority acquiring module, for calling the primary pictures management interface of iOS, obtains the editing authority of picture;
Parameter acquisition module, for calling the primary pictures management interface of iOS, obtains the parameter information that the related data of described mark picture is corresponding;
Parameter adapting module, for described parameter is composed null value, replaces the former related data of described mark picture with null value.
Preferably, provide a user interface, for showing the picture that continuous shooting generates, to accept selected to wherein any image of user.
Concrete, described continuous shooting picture is the continuous shooting picture of the label information with identical sign continuous shooting picture.
Further, when any image in described continuous shooting picture is selected, oppositely mark other continuous shooting pictures except chosen picture.
Further, by described delete cells, deletion action is performed to the continuous shooting picture of described reverse mark.
Compared to existing technology, the solution of the present invention has the following advantages:
1, the invention provides a kind of image deletion method based on iOS system, under the prerequisite not using privately owned API, by calling primary picture interface, can modify to the raw image data information of picture, metadata information, thumbnail data information etc., reach the object of deleting photo according to classified information.Make user in other third party applications, directly can perform deletion action to picture, break through systems technology restriction, reduce unnecessary trouble.
2, the present invention is according to all pictures stored in image attribute information classified display system, can make that namely picture characterizes the information of camera site according to attribute information, the information characterizing creation-time, the label information etc. that characterizes continuous shooting picture classify display, enable user more clear and intuitive browse selection picture.
3, the present invention is by realizing needing the picture deleted to mark at the variables D ELETE describing increase sign delete flag in the data structure needing deleted picture, be combined as the image attribute information of classification foundation, user can be enable to carry out batch according to information such as shooting time, spots for photography, whether continuous shooting to picture delete, add the convenience of operation, obtain and carry the more excellent Consumer's Experience of image data processing capacity than system.
In brief, enforcement of the present invention, need not by calling privately owned API, just can realize user and directly deletion action be carried out to picture when the third party application using nonsystematic to carry, and realize user and can carry out entirety selection batch operation according to the information such as time, place.
The aspect that the present invention adds and advantage will part provide in the following description, and these will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the image deletion method schematic flow sheet based on iOS system of the present invention;
Fig. 2 is the picture delete device theory diagram based on iOS system of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in instructions of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
Those skilled in the art of the present technique are appreciated that, here used " terminal ", " terminal device " had both comprised the equipment of wireless signal receiver, it only possesses the equipment of the wireless signal receiver without emissive ability, comprise again the equipment receiving and launch hardware, it has and on bidirectional communication link, can perform the reception of two-way communication and launch the equipment of hardware.This equipment can comprise: honeycomb or other communication facilitiess, its honeycomb or other communication facilities of having single line display or multi-line display or not having multi-line display; PCS (Personal Communications Service, PCS Personal Communications System), it can combine voice, data processing, fax and/or its communication ability; PDA (PersonalDigital Assistant ,personal digital assistant), it can comprise radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (Global PositioningSystem, GPS) receiver; Conventional laptop and/or palmtop computer or other equipment, it has and/or comprises the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Here used " terminal ", " terminal device " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run.Here used " terminal ", " terminal device " can also be communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (Mobile Internet Device, mobile internet device) and/or there is the mobile phone of music/video playing function, also can be the equipment such as intelligent television, Set Top Box.
As everyone knows, iOS system needs to call privately owned API for the direct deletion of picture, and the program calling privately owned API is generally difficult to the examination & verification by Apples Market, Apples Market can realize the blockade on new techniques to the third party application calling privately owned API by technological means, and thus this type of third party application is difficult to reach the standard grade at APPStore.The present invention is a kind of image deletion method based on iOS system and device, provides technical solution for the picture especially deleting iOS system for third party application management.
Before introducing the present invention, first brief description is carried out to some relevant concepts:
In order to realize the deletion to picture, need the relevant information carrying out Gains resources file by creating an ALAsset class, amendment and newly-built resource file.
ALAssetsLibrary class is whole resources bank in representative system, uses it can resource in access resources storehouse and preserve photo, the functions such as video.Can picture in access system Photos and video by the example creating ALAssetsLibrary, just can create the example of ALAssetsLibrary with common alloc and init, namely use following statement:
_library=[[ALAssetsLibrary alloc]init];
ALAssetsGroup class be system for mapping each photograph album in photograph album resource, the resource file in photograph album can be obtained by such, and resource file can be added in photograph album.
ALAsset class represents each resource file in photograph album, can also be able to be revised and newly-built resource file by the relevant information of its Gains resources file.
ALAssetRepresentation class represents the details of each resource file in photograph album, can by the size of its Gains resources, name, the details such as path.
In order to the detailed implementation of image deletion method of the present invention is described, refers to and read Fig. 1, the step that the image deletion method that the present invention is based on iOS system comprises is:
The all pictures stored in step S11, foundation image attribute information classified display system, receive the selected user instruction of described picture.
First can it is clear that, use the photo of intelligent mobile terminal shooting, all comprise the information characterizing camera site, information that the information characterizing creation-time, the label information etc. that characterizes continuous photo characterize resource types, and the image attribute information such as picture-storage path URL, read only attribute.
Above-mentioned image attribute information can use valueForProperty function to check and obtain.In a particular embodiment can by the type of asset valueForProperty:ALAssetPropertyType Gains resources, namely resource is photo or video; The information characterizing camera site can be obtained by asset valueForProperty:ALAssetPropertyLocation; The information characterizing creation-time can be obtained by assetvalueForProperty:ALAssetPropertyDate; The direction of resource can be checked by asset valueForProperty:ALAssetPropertyOrientation, sense of rotation is for picture resource; The descriptor of Gains resources can be carried out by asset valueForProperty:ALAssetPropertyRepresentations; Can assetvalueForProperty:ALAssetPropertyURLs be passed through] obtain the URL address of picture; The AssetURL information of picture can be obtained by asset valueForProperty:ALAssetPropertyAssetURL, etc.
The present invention carries out classification display according to these image attribute information to all pictures stored in system.According to the mode of checking picture that user selects, according to time-sequencing or according to geographical location information or according to whether being that continuous photo shows all pictures, also can show according to the direct comparison key message of the look-up command of user the picture that user will check.User is clicked to the picture of selection, obtained the URL information of picture by asset valueForProperty:ALAssetPropertyAssetURL, be i.e. store path information.Specifically can provide an interface, what receive user checks instruction, and the condition selected by user Shows Picture, as according to shooting time, camera site.In a particular embodiment, user selects the photo checking all " 2014 ", then need to select all pictures to show according to shooting time, namely system checks the picture recalling all 2014 by asset valueForProperty:ALAssetPropertyDate, page response user selects to jump to picture in 2014; User wants to check all photos taken in " Beijing ", then need to select all pictures to show according to camera site, namely system is obtained by asset valueForProperty:ALAssetPropertyLocation and recalls all Pekinese picture, and page response user selects to jump to Beijing picture; User or according to whether being continuous shooting picture arrangement display etc.By picture according to user as required or hobby select after display type carries out the list view of picture, receive user for the selected instruction needing the picture deleted, user is once selected, and relevant selected information is just determined, so that follow-up further process.
Its related data information of Resource Storage address acquisition of the selected picture of step S12, foundation, and it is marked.
For the picture that user in above-mentioned steps selectes, its Resource Storage address is obtained by asset valueForProperty:ALAssetPropertyAssetURL, according to its Resource Storage address, can obtain the related data information of selected picture, specifically, data message data, metadata information metadata, thumbnail information thumbnails etc. is comprised.
Described metadata information metadata, comprises iamge description Image Description, refers to the instrument of synthetic image; Author Artist; Producer Maker; Unit type Model; X/Y directional resolution XResolution/YResolution; Resolution unit ResolutionUnit; Form and aspect location YCbCrPositioning; Exif information position ExifOffset, Exif is in information write hereof in definition; Time shutter ExposureTime; Aperture-coefficient FNumber; Exposure program ExposureProgram, refers to the setting of program mode automatic exposure, may be Sutter Priority (shutter priority), Aperture Priority (shutter priority) etc.; Light sensitivity ISO speed ratings; Exif version ExifVersion; Creation-time DateTimeOriginal; Digitization time DateTimeDigitized; Image configuration ComponentsConfiguration, refers to color scheme scheme more; During compression, every pixel color position CompressedBitsPerPixel, refers to compression degree; Exposure compensating ExposureBiasValue; Maximum ring MaxApertureValue; Exposure Metering MeteringMode, average formula light-metering, central emphasis light-metering, some light-metering etc.; Light source Lightsource, refers to that white balance is arranged; Whether Flash, use flashlamp; Focal length FocalLength, general display camera lens physics focal length; Author records MakerNote (User Comment); Colour gamut ColorSpace; Picture traverse ExifImageWidth (Pixel X Dimension), refers to horizontal pixel number; Picture altitude ExifImageLength (Pixel Y Dimension), refers to longitudinal pixel count; Source file FileSource; The described related data information of ratio of compression Compression etc.
And then, by increasing the variable that is used for characterizing delete flag in the data structure of selected picture to be deleted, be character string DELETE by this variable assignments, the deleted picture of needs is marked.Wherein, selected picture can be marked for the continuous shooting picture of same group, also back mark can be selected picture beyond picture.In other embodiments, for one group of continuous shooting picture of label information with identical sign continuous shooting picture, when any image in current group is selected, reverse mark other continuous shooting pictures except chosen picture, being about to increase an assignment in the data structure of other continuous shooting pictures beyond chosen picture is the token variable of character string DELETE.Thus, picture to be deleted forms a clear and definite data set, need delete the execution of this data set as required for follow-up.
Step S13, in response to deleting the delete instruction of described mark picture, delete the related data of described mark picture.
User determine delete select and the picture mark time, by user interface send one characterize confirmation deletion instruction, this step receives this user instruction and completes deletion action.
Specifically, when performing deletion, for the aforementioned picture adding the change character string DELETE characterizing delete flag, first editing authority is obtained by calling the primary pictures management interface of iOS system, then the parameter value that primary picture interface reads its information such as original image data message data and metadata information metadata is called, be finally empty by information assignment such as described data message data and metadata information metadata, namely original parameter of the information such as replacement data information data and metadata information metadata is carried out with nil or null, thus reach the user-selected effect of determining picture of deletion.Wherein, selected picture can be deleted for the continuous shooting picture of same group, also can delete the picture beyond chosen picture.In other embodiments, for one group of continuous shooting picture of label information with identical sign continuous shooting picture, when any image in current group is selected, delete other continuous shooting pictures beyond chosen picture, to delete the repetitive picture of continuous shooting.
In order to make, those skilled in the art are clearer understands the present invention, this enumerate a part can support program of the present invention is described.It should be explicitly made clear at this point, the present invention is not limited in this kind of program implementation.
First write a class function Category, obtained the editing authority of mark DELETE picture by calling system native interface, code is as follows:
Contrast above-mentioned code, the data message data of picture and metadata information metadata is composed as null value, if preserve successfully, returns the URL of former picture; Cannot perform the preservation operation of information, then put sky information and return null value nil, display " deletes picture failure if without editing authority! " to realize the prompting to user.
Below based on modularized thoughts, disclose the embodiment of the mobile phone terminal realized according to Intelligent hardware networking control method of the present invention further.
Refer to Fig. 2, the picture delete device based on iOS system provided by the present invention, comprises interactive unit 11, indexing unit 12, delete cells 13.In conjunction with the above-mentioned image deletion method based on iOS system, disclose the concrete function that each module realizes below in detail:
Interactive unit 11, for according to all pictures stored in image attribute information classified display system, receives the selected user instruction of described picture.
First can it is clear that, use the photo of intelligent mobile terminal shooting, all comprise the information of sign taking location information, characterize the information of creation-time information, characterize the image attribute information such as information, URL, read only attribute that the label information etc. of continuous photo characterizes resource type.
Above-mentioned image attribute information can use valueForProperty function to check and obtain.As passed through the type of asset valueForProperty:ALAssetPropertyType Gains resources, namely resource is photo or video; The information characterizing camera site can be obtained by asset valueForProperty:ALAssetPropertyLocation; The information characterizing creation-time can be obtained by assetvalueForProperty:ALAssetPropertyDate; The direction of resource can be checked by asset valueForProperty:ALAssetPropertyOrientation, sense of rotation is for picture resource; The descriptor of Gains resources can be carried out by asset valueForProperty:ALAssetPropertyRepresentations; Can assetvalueForProperty:ALAssetPropertyURLs be passed through] obtain the URL address of picture; The AssetURL information of picture can be obtained by asset valueForProperty:ALAssetPropertyAssetURL, etc.
Described interactive unit 11 carries out classification display according to these image attribute information to all pictures stored in system.According to the mode of checking picture that user selects, according to time-sequencing or according to geographical location information or according to whether continuous shooting arranges all pictures.Also can show according to the direct comparison key message of the look-up command of user the picture that user will check.User is clicked to the picture of selection, obtained the AssetURL information of picture by asset valueForProperty:ALAssetPropertyAssetURL.Namely an interface is provided, selects to Show Picture according to shooting time or camera site or certain group continuous shooting picture for user.As user wants the photo checking all " 2014 ", then need to select all pictures to show according to shooting time, namely system checks the picture recalling all 2014 by assetvalueForProperty:ALAssetPropertyDate, page response user selects to jump to picture in 2014; User wants to check all photos taken in " Beijing ", then need to select all pictures to show according to camera site, namely system is obtained by assetvalueForProperty:ALAssetPropertyLocation and recalls all Pekinese picture, and page response user selects to jump to Beijing picture; User or according to whether being continuous shooting picture arrangement display etc.By picture according to user as required or hobby select after display type carries out the list view of picture, receive user for the selected instruction needing the picture deleted, user is once selected, and relevant selected information is just determined, follow-up further process.
Indexing unit 12, for its related data information of Resource Storage address acquisition according to selected picture, and marks it.
For the picture that user in above-mentioned steps selectes, its Resource Storage address is obtained by asset valueForProperty:ALAssetPropertyAssetURL, according to its Resource Storage address, can obtain the related data information of selected picture, specifically, data message data, metadata information metadata, thumbnail information thumbnails etc. is comprised.
Described metadata information metadata, comprises iamge description Image Description, refers to the instrument of synthetic image; Author Artist; Producer Maker; Unit type Model; X/Y directional resolution XResolution/YResolution; Resolution unit ResolutionUnit; Form and aspect location YCbCrPositioning; Exif information position ExifOffset, Exif is in information write hereof in definition; Time shutter ExposureTime; Aperture-coefficient FNumber; Exposure program ExposureProgram, refers to the setting of program mode automatic exposure, may be Sutter Priority (shutter priority), Aperture Priority (shutter priority) etc.; Light sensitivity ISO speed ratings; Exif version ExifVersion; Creation-time DateTimeOriginal; Digitization time DateTimeDigitized; Image configuration ComponentsConfiguration, refers to color scheme scheme more; During compression, every pixel color position CompressedBitsPerPixel, refers to compression degree; Exposure compensating ExposureBiasValue; Maximum ring MaxApertureValue; Exposure Metering MeteringMode, average formula light-metering, central emphasis light-metering, some light-metering etc.; Light source Lightsource, refers to that white balance is arranged; Whether Flash, use flashlamp; Focal length FocalLength, general display camera lens physics focal length; Author records MakerNote (User Comment); Colour gamut ColorSpace; Picture traverse ExifImageWidth (Pixel X Dimension), refers to horizontal pixel number; Picture altitude ExifImageLength (Pixel Y Dimension), refers to longitudinal pixel count; Source file FileSource; The described related data information of ratio of compression Compression etc.
And then, by the data structure of selected picture to be deleted increase by one be used for characterization markers delete variable, be character string DELETE by this variable assignments, to needs deleted picture mark.Wherein, selected picture can be marked for the continuous shooting picture of same group, also back mark can be selected picture beyond picture.In other embodiments, for one group of continuous shooting picture of label information with identical sign continuous shooting picture, when any image in current group is selected, reverse mark other continuous shooting pictures except chosen picture, being about to increase an assignment in the data structure of other continuous shooting pictures beyond chosen picture is the token variable of character string DELETE.Thus, picture to be deleted forms a clear and definite data set, need delete the execution of this data set as required for follow-up.
Delete cells 13, in response to the delete instruction deleting described mark picture, deletes the related data of described mark picture.
User determine delete select and the picture mark time, by user interface send one characterize confirmation deletion instruction, delete cells 13 receives this user instruction and completes deletion action.
Specifically, when performing deletion, for the aforementioned picture adding the change character string DELETE characterizing delete flag, first call the primary picture interface of iOS system by authority acquiring module and obtain editing authority, then call by parameter acquisition module the parameter value that primary picture interface obtains the information such as its data message data and metadata information metadata, be finally empty by parameter adapting module by information assignment such as described data message data and metadata information metadata, namely original parameter of the information such as replacement data information data and metadata information metadata is carried out with nil or null, thus reach the user-selected effect of determining picture of deletion.Wherein, selected picture can be deleted for the continuous shooting picture of same group, also can delete the picture beyond chosen picture.In other embodiments, for one group of continuous shooting picture of label information with identical sign continuous shooting picture, when any image in current group is selected, delete other continuous shooting pictures beyond chosen picture, to delete the repetitive picture of continuous shooting.
In order to make, those skilled in the art are clearer understands the present invention, this enumerate a part can support program of the present invention is described.It should be explicitly made clear at this point, the present invention is not limited in this kind of program implementation.
First write a class function Category, obtain the editing authority of mark DELETE picture, code is as follows:
Contrast above-mentioned code, that is, the data message data of picture and metadata information metadata is composed for null value, if preserve the URL successfully just information being turned back to former picture; If without editing authority, information could be preserved, then put sky information and turn back to an address blank, and display " deletes picture failure! "
For the ease of understanding the present invention more intuitively, provide if next application scenarios is for reference.
In application scenarios of the present invention, user have taken many group continuous shooting pictures, for being deleted by picture undesirable for a part of effect in continuous shooting picture.User has downloaded and installed one and has comprised application program of the present invention on its terminal i Phone or iPad, open picture and show main interface, comprise a drop-down selection menus, user can select all pictures to show according to shooting time, or according to camera site display, or display continuous shooting picture.Comprise the input window that possesses function of search, user according to self needs, can input corresponding keyword simultaneously, as " 2014 ", " Beijing " etc., clicks " searching " button, directly filters out the Target Photo of user.In this application scene, user selects display continuous shooting picture, then the picture with same continuous shooting mark is compiled by program is an atlas, the form organizing continuous shooting picture atlas is all shown more, the first pictures in acquiescence continuous shooting is atlas front cover, selects for user.User selects one of them continuous shooting atlas, click the thumbnail by opening all collection continuous shooting pictures, can check that the page of thumbnail directly clicks " selection " button, click the picture selecting to need to delete, a mark of checking the number is being added by the picture lower right corner selected, there is provided " ALL " to choose option above interface, to support the full choosing deletion demand of user, select complete user can click delete button and carry out deletion action; User also directly can click picture at thumbnail display page, checks former figure successively, checks that interface is directly clicked delete button and carried out picture deletion.Comprise application program of the present invention after receiving the delete instruction of user, as aforementioned process, read the data structure information with the picture of delete flag, be empty by information assignment such as its data message data, metadata information metadata and thumbnail information thumbnails, reach the object of deleting the former figure of user-selected picture and thumbnail.
In sum, the present invention, not by calling privately owned API, can realize non-iOS system and carrying the function that third party application directly deletes picture, and can carry out batch operation according to the relevant information of image.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. based on an image deletion method for iOS system, it is characterized in that, comprise the following steps:
According to all pictures stored in image attribute information classified display system, receive the selected user instruction of described picture;
According to its related data information of Resource Storage address acquisition of selected picture, and it is marked;
In response to the delete instruction deleting described mark picture, delete the related data of described mark picture.
2. method according to claim 1, is characterized in that, the related data information of described picture comprises the raw image data information of picture, metadata information, thumbnail data information.
3. method according to claim 1, is characterized in that, described image attribute information comprises the label information of the information characterizing camera site, the information characterizing creation-time, sign continuous shooting picture.
4. method according to claim 1, is characterized in that, is describedly specially to choosing the step that picture marks the variable increasing in the data structure describing this picture and characterize delete flag.
5. method according to claim 4, is characterized in that, the variable of the sign delete flag of described increase is character string DELETE.
6., based on a picture delete device for iOS system, it is characterized in that, it comprises:
Interactive unit, for according to all pictures stored in image attribute information classified display system, receives the selected user instruction of described picture;
Indexing unit, for its related data information of Resource Storage address acquisition according to selected picture, and marks it;
Delete cells, in response to the delete instruction deleting described mark picture, deletes the related data of described mark picture.
7. device according to claim 6, is characterized in that, the related data information of described picture comprises the raw image data information of picture, metadata information, thumbnail data information.
8. device according to claim 6, is characterized in that, described image attribute information comprises the label information of the information characterizing camera site, the information characterizing creation-time, sign continuous shooting picture.
9. device according to claim 6, is characterized in that, described mark module performs the operation increasing the variable characterizing delete flag in the data structure describing this picture.
10. device according to claim 9, is characterized in that, the variable of the sign delete flag of described increase is character string DELETE.
CN201510337945.7A 2015-06-17 2015-06-17 iOS system based picture deletion method and device Pending CN104881296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510337945.7A CN104881296A (en) 2015-06-17 2015-06-17 iOS system based picture deletion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510337945.7A CN104881296A (en) 2015-06-17 2015-06-17 iOS system based picture deletion method and device

Publications (1)

Publication Number Publication Date
CN104881296A true CN104881296A (en) 2015-09-02

Family

ID=53948803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510337945.7A Pending CN104881296A (en) 2015-06-17 2015-06-17 iOS system based picture deletion method and device

Country Status (1)

Country Link
CN (1) CN104881296A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224673A (en) * 2015-10-14 2016-01-06 海信集团有限公司 A kind of media file transfer approach and device
CN105488190A (en) * 2015-12-02 2016-04-13 深圳市金立通信设备有限公司 Picture management method and terminal
CN105681461A (en) * 2016-03-08 2016-06-15 沈文策 Network data deleting method and apparatus
CN105740455A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN106021022A (en) * 2016-05-13 2016-10-12 上海互盾信息科技有限公司 Method for recovering mistakenly deleted photo based on IOS thumbnail
CN106527879A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data object retrieval method and equipment
CN106547846A (en) * 2016-10-17 2017-03-29 上海传英信息技术有限公司 A kind of method and device for arranging repetitive picture
CN106649424A (en) * 2016-07-01 2017-05-10 北京金山安全软件有限公司 Method and device for cleaning picture files in social software and mobile terminal
CN106815223A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 A kind of mass picture management method and device
CN107678657A (en) * 2017-10-23 2018-02-09 努比亚技术有限公司 Batch selection image processing method and corresponding mobile terminal
WO2018032721A1 (en) * 2016-08-15 2018-02-22 华为技术有限公司 Image sharing method based on thumbnail image and terminal
CN108093249A (en) * 2017-12-21 2018-05-29 珠海格力电器股份有限公司 A kind of image processing method and device
CN109033858A (en) * 2016-02-17 2018-12-18 青岛海信移动通信技术股份有限公司 A kind of image guard method and device based on recognition of face
CN109076159A (en) * 2016-04-01 2018-12-21 三星电子株式会社 Electronic equipment and its operating method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117273A (en) * 2009-12-31 2011-07-06 联发科技股份有限公司 Methods and electronic devices for browsing, managing and storing multimedia file
CN102541872A (en) * 2010-12-08 2012-07-04 三星电子(中国)研发中心 System and method for managing a plurality of albums
CN103838484A (en) * 2014-02-21 2014-06-04 联想(北京)有限公司 Method for deleting redundancy images, and electronic device
CN104298747A (en) * 2014-10-13 2015-01-21 福建星海通信科技有限公司 Storage method and retrieval method of massive images

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117273A (en) * 2009-12-31 2011-07-06 联发科技股份有限公司 Methods and electronic devices for browsing, managing and storing multimedia file
CN102541872A (en) * 2010-12-08 2012-07-04 三星电子(中国)研发中心 System and method for managing a plurality of albums
CN103838484A (en) * 2014-02-21 2014-06-04 联想(北京)有限公司 Method for deleting redundancy images, and electronic device
CN104298747A (en) * 2014-10-13 2015-01-21 福建星海通信科技有限公司 Storage method and retrieval method of massive images

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ITUMBLEDSEA: "iOS基础教程:删除iPhone照片的6种姿势,总有一种你不知道", 《HTTP://SSPAI.COM/26481》 *
张俊: "百度魔拍跟iPhone一样可以直接删除iPhone相册中的照片,请问怎么做到的?", 《HTTP://WWW.ZHIHU.COM/QUESTION/21863374》 *

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527879A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data object retrieval method and equipment
WO2017045544A1 (en) * 2015-09-14 2017-03-23 阿里巴巴集团控股有限公司 Data object retrieval method and device
CN105224673A (en) * 2015-10-14 2016-01-06 海信集团有限公司 A kind of media file transfer approach and device
CN105224673B (en) * 2015-10-14 2020-03-06 海信集团有限公司 Media file transmission method and device
CN106815223A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 A kind of mass picture management method and device
CN106815223B (en) * 2015-11-27 2020-10-27 阿里巴巴集团控股有限公司 Mass picture management method and device
CN105488190A (en) * 2015-12-02 2016-04-13 深圳市金立通信设备有限公司 Picture management method and terminal
CN105740455A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN105740455B (en) * 2016-02-04 2019-09-17 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN109063497B (en) * 2016-02-17 2020-11-24 青岛海信移动通信技术股份有限公司 Image protection method and device based on face recognition
CN109033858B (en) * 2016-02-17 2020-08-25 青岛海信移动通信技术股份有限公司 Image protection method and device based on face recognition
CN109145615B (en) * 2016-02-17 2020-08-25 青岛海信移动通信技术股份有限公司 Image protection method and device based on face recognition
CN109145615A (en) * 2016-02-17 2019-01-04 青岛海信移动通信技术股份有限公司 A kind of image guard method and device based on recognition of face
CN109033858A (en) * 2016-02-17 2018-12-18 青岛海信移动通信技术股份有限公司 A kind of image guard method and device based on recognition of face
CN109063497A (en) * 2016-02-17 2018-12-21 青岛海信移动通信技术股份有限公司 A kind of image guard method and device based on recognition of face
CN105681461A (en) * 2016-03-08 2016-06-15 沈文策 Network data deleting method and apparatus
CN109076159A (en) * 2016-04-01 2018-12-21 三星电子株式会社 Electronic equipment and its operating method
US10681263B2 (en) 2016-04-01 2020-06-09 Samsung Electronics Co., Ltd. Electronic device and operating method thereof
CN109076159B (en) * 2016-04-01 2021-03-26 三星电子株式会社 Electronic device and operation method thereof
US11089206B2 (en) 2016-04-01 2021-08-10 Samsung Electronics Co., Ltd. Electronic device and operating method thereof
US11743571B2 (en) 2016-04-01 2023-08-29 Samsung Electronics Co., Ltd. Electronic device and operating method thereof
CN106021022A (en) * 2016-05-13 2016-10-12 上海互盾信息科技有限公司 Method for recovering mistakenly deleted photo based on IOS thumbnail
CN106649424A (en) * 2016-07-01 2017-05-10 北京金山安全软件有限公司 Method and device for cleaning picture files in social software and mobile terminal
WO2018032721A1 (en) * 2016-08-15 2018-02-22 华为技术有限公司 Image sharing method based on thumbnail image and terminal
US10885100B2 (en) 2016-08-15 2021-01-05 Huawei Technologies Co., Ltd. Thumbnail-based image sharing method and terminal
CN106547846A (en) * 2016-10-17 2017-03-29 上海传英信息技术有限公司 A kind of method and device for arranging repetitive picture
CN107678657A (en) * 2017-10-23 2018-02-09 努比亚技术有限公司 Batch selection image processing method and corresponding mobile terminal
CN108093249A (en) * 2017-12-21 2018-05-29 珠海格力电器股份有限公司 A kind of image processing method and device

Similar Documents

Publication Publication Date Title
CN104881296A (en) iOS system based picture deletion method and device
KR100654709B1 (en) Data file storage device, data file storage method and recording medium for storing data file storage program
WO2019109245A1 (en) Method and device for displaying story album
US7756866B2 (en) Method and apparatus for organizing digital images with embedded metadata
WO2017129018A1 (en) Picture processing method and apparatus, and smart terminal
US8873885B2 (en) System and method for resizing images prior to upload
US20120124125A1 (en) Automatic journal creation
CN105812660A (en) Video processing method based on geographic position
CN102769775A (en) System, server and method for providing overlay images
KR20090002656A (en) Apparatus and method for providing picture file
US10277662B2 (en) Photo request using a location identifier
CN104794173A (en) Photographing processing method and system based on mobile terminal
CN105956008A (en) Picture management method and terminal
US20180068411A1 (en) Embedding digital content within a digital photograph during capture of the digital photograph
CN105159976A (en) Image file processing method and system
KR20150057736A (en) Apparatus and Method For Managing Image Files By Displaying Backup Information
KR101519421B1 (en) System for sharing picture image and video contents
CN107729485B (en) Data management method, device, terminal and computer readable storage medium
KR100690728B1 (en) Method for saving photograph file using camera in handheld terminal
CN110543461A (en) Terminal for performing data synchronization and method thereof
US20170192645A1 (en) System and method for storing and searching digital media
WO2023138353A1 (en) Picture processing method, electronic device and computer readable medium
KR100868174B1 (en) Classificating And Searching System Of Map Structed Video Contents And Method Thereof
US20080295010A1 (en) Systems and Methods for Incorporating Data Into Digital Files
KR20100101960A (en) Digital camera, system and method for grouping photography

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150902

RJ01 Rejection of invention patent application after publication