CN104053016B - A kind of image preview method and device - Google Patents

A kind of image preview method and device Download PDF

Info

Publication number
CN104053016B
CN104053016B CN201410290356.3A CN201410290356A CN104053016B CN 104053016 B CN104053016 B CN 104053016B CN 201410290356 A CN201410290356 A CN 201410290356A CN 104053016 B CN104053016 B CN 104053016B
Authority
CN
China
Prior art keywords
image
preview
summary info
info
filename
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410290356.3A
Other languages
Chinese (zh)
Other versions
CN104053016A (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.)
Shenzhen Netcom Electronics Co Ltd
Original Assignee
Shenzhen Netcom Electronics 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 Shenzhen Netcom Electronics Co Ltd filed Critical Shenzhen Netcom Electronics Co Ltd
Priority to CN201410290356.3A priority Critical patent/CN104053016B/en
Publication of CN104053016A publication Critical patent/CN104053016A/en
Application granted granted Critical
Publication of CN104053016B publication Critical patent/CN104053016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Information Transfer Between Computers (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The present invention is suitable for technical field of image processing, provides a kind of image preview method and device, the method includes:Solicited message of the user to image preview is received, the solicited message includes the filename and/or routing information of the image;According to the filename and/or routing information, the summary info of described image is downloaded;The summary image of described image is generated based on the summary info;The summary image of generation is reduced, and shows the summary image after the diminution.To solve the problems, such as that slow by speed when wireless memory apparatus access image files, efficiency is low, the speed by wireless network preview image is improved.

Description

A kind of image preview method and device
Technical field
The invention belongs to technical field of image processing more particularly to a kind of image preview method and devices.
Background technology
In the local memory device access image files of intelligent terminal, operating system, which can usually provide, generates breviary The method of figure, user can quickly locate oneself required figure when browsing listed files, by thumbnail Picture.
However, when by network access image files, due to the restricted reason of network speed, network speed usually in 5MB/s, Local IP access speed is up to 50MB/s, it is seen then that the speed that image file is obtained by network is much more slowly than local memory device visit Ask image file.For conventional equipment, single file can be first downloaded, regenerates thumbnail after the download is complete.And for list Reflection of light piece, size at least in 10MB or so, single anti-CF card insertions enter on wireless memory apparatus by intelligent terminal into When row browsing, network transmission occupies most of the time, obtains that the time that image expends is long, so as to cause image preview when Between it is long, user experience is poor.
Invention content
The purpose of the present invention is to provide a kind of image preview method and devices, to solve to access by wireless memory apparatus The problem that speed is slow when access image files, efficiency is low.
The invention is realized in this way a kind of image preview method, the method includes:
Solicited message of the user to image preview is received, the solicited message includes filename and/or the path of the image Information;
According to the filename and/or routing information, the summary info of described image is downloaded;
The summary image of described image is generated based on the summary info;
The summary image of generation is reduced, and shows the summary image after the diminution.
The second aspect of the present invention, provides a kind of image preview device, and described device includes:
Receiving module, for receiving solicited message of the user to image preview, the solicited message includes the text of the image Part name and/or routing information;
Download module, for according to the filename and/or routing information, downloading the summary info of described image;
Generation module, the summary image for generating described image based on the summary info;
Module is reduced, for reducing the summary image generated, and shows the summary image after the diminution.
Compared with prior art, it is big to specify the corresponding summary info of image by pre-setting a threshold value by the present invention It is small.When carrying out the preview of image by network, only download summary info, and the summary info be decoded, generate with The summary image of the corresponding described image of the summary info, reduces the summary image, and after showing the diminution Summary image solved through wireless memory apparatus access images text to improve the speed by network preview image The problem that speed is slow when part, efficiency is low, the user experience is improved.
Description of the drawings
Fig. 1 is the implementation flow chart for the image preview method that the embodiment of the present invention one provides;
Fig. 2 is the implementation flow chart of image preview device provided by Embodiment 2 of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and It is not used in the restriction present invention.
The present invention specifies the corresponding summary info size of image by pre-setting a threshold value.By network into When the preview of row image, summary info is only downloaded, and be decoded to the summary info, generated corresponding with the summary info Described image summary image, the summary image is reduced, and show the summary image after the diminution, to carry The high speed by network preview image, solves that slow by speed when wireless memory apparatus access image files, efficiency is low The problem of, the user experience is improved.
Embodiment one
Fig. 1 shows that the implementation process for the image preview method that the embodiment of the present invention one provides only is shown for convenience of description Part related to the present invention is gone out.
The method is applied to intelligent terminal.The intelligent terminal includes but not limited to mobile phone, tablet computer And computer.The intelligent terminal is connect by wireless memory apparatus with storage medium.Wherein, the storage medium is U The external storage medium such as disk, SD card, the wireless memory apparatus is for realizing the nothing between intelligent terminal and storage medium Line connection communication, so that wireless network transmissions data can be passed through between intelligent terminal and storage medium.The nothing Line storage medium can also have built-in storage medium.
As shown in Figure 1, described image method for previewing includes:
In step S101, solicited message of the user to image preview is received, the solicited message includes the text of the image Part name and/or routing information.
In the present embodiment, intelligent terminal accesses storage medium by wireless memory apparatus.Intelligent terminal connects After user is received to the solicited message of image preview, the image in storage medium is read by wireless network and carries out preview.It is described It can be to receive user by such as clicking or the behaviour such as the icon of double-click image to the solicited message of image preview to receive user Make the image preview solicited message inputted.The solicited message includes the filename and/or routing information of image, the path letter Breath is preferably store path of the described image in storage medium.Described image is preferably to follow the picture of JPEG2000 standards.
In step s 102, the summary info of image corresponding with the filename and/or routing information is downloaded.
In the present embodiment, described image is preferably the picture of JPEG2000 standards, and JPEG picture has cycle progressive Transmission characteristic first transmits the profile of image, then gradually transmission data, picture quality is continuously improved, allow image by it is dim to Clear display.Therefore in a JPEG picture recycles progressive transmission process, setting (downloads starting from transmission section start Place) to the image data between predetermined threshold value be the image summary info.The predetermined threshold value is preferably 300KB to 500KB Any value in range.The summary info may be 1/10th of image data size, as long as including that can show The image data of image outline.
In step s 103, the summary image of described image is generated based on the summary info.
In the present embodiment, accessed summary info is decoded according to existing picture decoding method, still The present invention only obtains the summary info of image, and accessed summary info is not all data of a complete image, Therefore, the present invention is only decoded the summary info of image, i.e., is only decoded to the data of image previous section.
Preferably, the summary info includes file header parameter information;The step S103 is specially:
A. according to the data field initial address in file header parameter information, the picture number in downloaded summary info is read According to being decoded to the image data read.
In the present embodiment, the file header parameter information contains the essential information of a complete image, such as image Width, the type information of elevation information and image, image data initial address etc..The file header parameter information is made It appears in image data transport stream and is downloaded for first data.
After downloading to the summary info in preset threshold range, according to the data field initial address in file header parameter information Downloaded summary info is read, and the summary info read is decoded.
B. until being decoded to the image data in summary info, then terminate decoded process, the figure obtained Summary image as being described image corresponding with the summary info.
In the present embodiment, it due to only having downloaded the summary info of image, is risen according to the data in file header parameter information When summary info is read in beginning address, when being read according to the data address after preset threshold range, it may be found that file is imperfect, Read less than any data, at this point, then jumping out decoded process, terminate decoded process, the image obtained be with it is described The summary image of the corresponding described image of summary info.
The summary info in the preset threshold range is decoded by step S103, generates corresponding synoptic diagram Picture.Although the summary image generated is clear not as good as original image, the profile of original image is contained only, user is by being generated Summary image realized identification and judgement to original image enough, achieve the effect that preview.
In step S104, the summary image of generation is reduced, and show the summary image after the diminution.
As a preferred implementation example of the present invention, different intelligent terminals has different operating system, no Same operating system has different thumbnail standards.According to the thumbnail standard of operating system, by the synoptic diagram of generation As dwindling into the thumbnail standard for meeting operating system.
Illustratively, for mobile phone, thumbnail is usually 320 × 240 pixels, color mode RGB.Therefore, pass through After step S103 generates the corresponding summary image of summary info, the summary image is dwindled into 320 × 240 pixels, color mould Formula is the image of RGB.
As another preferred implementation example of the present invention, the corresponding summary image of summary info is generated by step S103 Afterwards, setting information of the user to the summary image is received.The setting information can be length information, width information and figure As type, described image type is any one of bianry image, gray level image, thumbnail and True color RGB image.Root The image type of the summary image is adjusted according to the setting information, and to the summary adjusted by image type Image is reduced, and shows bianry image, gray level image, thumbnail or the true color of the summary image after the diminution RGB image.
Preferably, the method further includes following step:
Summary image after the diminution is stored in local data base, and access path is distributed for it, records institute State access path, filename and the size of summary image in the local database after reducing.
In the present embodiment, the summary image after the diminution is stored in the local data base of intelligent terminal, And be that it distributes access path, record the summary image access path in the local database after reducing, filename and its Size.Thus when receiving solicited message of the user to described image preview again, it is big according to the file name of image, file Small or access path, the summary image after obtaining corresponding diminution in local data base is shown, is avoided and is led to again It crosses network request and obtains described image, further improve the speed of image preview.
In the present embodiment, the summary info that image is specified by predetermined threshold value, when carrying out network preview image, under The summary info of image is carried, and described image summary info is decoded, generates the general of the corresponding described image of summary info Image is wanted, the summary image is reduced, and shows the summary image after the diminution, passes through wireless network to improve The speed of network preview image solves the problems, such as that slow by speed when wireless memory apparatus access image files, efficiency is low, is promoted User experience.
Embodiment two
Fig. 2 shows the composed structures of image preview device provided by Embodiment 2 of the present invention only to show for convenience of description Part related to the present invention is gone out.Described device is applied to intelligent terminal, and the intelligent terminal includes but unlimited In mobile phone, tablet computer and computer.
As shown in Fig. 2, described device includes:
Receiving module 21, for receiving solicited message of the user to image preview, the solicited message includes the image Filename and/or routing information.
Download module 22 downloads the summary info of described image according to the filename and/or routing information.
In the present embodiment, described image is preferably the picture of JPEG2000 standards, and JPEG picture has cycle progressive Transmission characteristic first transmits the profile of image, then gradually transmission data, picture quality is continuously improved, allow image by it is dim to Clear display.Therefore in a JPEG picture recycles progressive transmission process, setting (downloads starting from transmission section start Place) to the image data between predetermined threshold value be the image summary info.The predetermined threshold value is preferably 300KB to 500KB Any value in range.The summary info may be 1/10th of image data size, as long as including that can show The image data of image outline.
Generation module 23, the summary image for generating described image based on the summary info.
Further, the summary info includes file header parameter information, and the generation module is specifically used for:
According to the data field initial address in file header parameter information, the picture number in downloaded summary info is read According to, and the image data read is decoded;Obtain the summary image of described image corresponding with the summary info.
The present embodiment generates the summary of described image by being decoded to the image data in the preset threshold range Image.The summary image generated is sufficient for identification and judgement of the user to image.Due to only needing the summary of acquisition image Information, improves the speed of image preview at the time that network transmission occupies when obtaining image by network to greatly reduce Degree
Module 24 is reduced, the summary image of generation is reduced, and show the summary image after the diminution.
In the present embodiment, described to reduce thumbnail standard of the module 24 according to operating system, by the summary of generation Image down is at the thumbnail standard for meeting operating system.
Optionally, described device further includes image type adjustment module 25.
Described image type adjustment module 25 is used to adjust the image class of the summary image obtained by generation module 23 Type.
Described image type is any one of bianry image, gray level image, thumbnail and True color RGB image.
Preferably, described device further includes:
Memory module 26 is visited for the summary image after the diminution to be stored in local data base, and for its distribution It asks the way diameter, records access path, filename and the size of the summary image after the diminution in the local database.
In the present embodiment, the summary image after the diminution is stored in the local data base of intelligent terminal, And access path is distributed for it, record access path, filename and its size of the synoptic diagram after reducing.To connect again When receiving solicited message of the user to described image preview, according to the file name of the summary image after the corresponding diminution of image, File size or access path, the summary image after obtaining the diminution in local data base is shown, is avoided again It is secondary that described image is obtained by network request, further improve the speed that image is shown.
In the present embodiment, by the way that a threshold value is arranged, the summary info size of image is specified.It is carried out by network When the preview of image, the summary info of image is only downloaded, described image summary info is decoded, generated summary info and correspond to Described image summary image, the summary image is reduced, and show the summary image after the diminution, to carry The high speed by network preview image, solves that slow by speed when wireless memory apparatus access image files, efficiency is low The problem of, greatly improve user experience.
Those of ordinary skill in the art be further appreciated that implement the method for the above embodiments be can It is completed with instructing relevant hardware by program, the program can be stored in a computer read/write memory medium In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention.For example, modules are only It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;Separately Outside, the specific name of each function module is also only to facilitate mutually distinguish, the protection domain being not intended to restrict the invention.It is all All any modification, equivalent and improvement made by within the spirit and principles in the present invention etc. should be included in the guarantor of the present invention Within the scope of shield.

Claims (6)

1. a kind of image preview method is applied to network preview image, which is characterized in that the method includes:
Solicited message of the user to image preview is received, the solicited message includes the filename and/or routing information of the image;
According to the filename and/or routing information, the summary info of described image is downloaded;
The summary image of described image is generated based on the summary info;
Adjust the image type of the summary image generated;Described image type is bianry image, gray level image, thumbnail And any one of True color RGB image;
The summary image is reduced, and shows the summary image after the diminution;
Summary image after the diminution is stored in local data base, and access path is distributed for it, records the contracting Access path, filename and the size of summary image in the local database after small.
2. image preview method as described in claim 1, which is characterized in that the summary info is specially:
From section start is downloaded to the image data predetermined threshold value;
The predetermined threshold value is any value within the scope of 300KB to 500KB.
3. image preview method as claimed in claim 2, which is characterized in that the summary info includes file header parameter letter Breath;
It is described based on the summary info generate described image summary image the step of be specially:
According to the data field initial address in file header parameter information, the image data in downloaded summary info is read, and The image data read is decoded;Obtain the summary image of described image corresponding with the summary info.
4. a kind of image preview device, it is applied to network preview image, which is characterized in that described device includes:
Receiving module, for receiving solicited message of the user to image preview, the solicited message includes the filename of the image And/or routing information;
Download module, for according to the filename and/or routing information, downloading the summary info of described image;
Generation module, the summary image for generating described image based on the summary info;
Image type adjusts module, the image type for adjusting the summary image generated, and described image type is two-value Any one of image, gray level image, thumbnail and True color RGB image;
Module is reduced, for reducing the summary image, and shows the summary image after the diminution;
Memory module distributes access path for the summary image after the diminution to be stored in local data base, and for it, Record access path, filename and the size of the summary image after the diminution in the local database.
5. image preview device as claimed in claim 4, which is characterized in that the summary info is specially:
From section start is downloaded to the image data predetermined threshold value;
The predetermined threshold value is any value within the scope of 300KB to 500KB.
6. image preview device as claimed in claim 5, which is characterized in that the summary info includes file header parameter letter Breath;
The generation module is specifically used for:
According to the data field initial address in file header parameter information, the image data in downloaded summary info is read, and The image data read is decoded;Obtain the summary image of described image corresponding with the summary info.
CN201410290356.3A 2014-06-24 2014-06-24 A kind of image preview method and device Active CN104053016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410290356.3A CN104053016B (en) 2014-06-24 2014-06-24 A kind of image preview method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410290356.3A CN104053016B (en) 2014-06-24 2014-06-24 A kind of image preview method and device

Publications (2)

Publication Number Publication Date
CN104053016A CN104053016A (en) 2014-09-17
CN104053016B true CN104053016B (en) 2018-09-28

Family

ID=51505324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410290356.3A Active CN104053016B (en) 2014-06-24 2014-06-24 A kind of image preview method and device

Country Status (1)

Country Link
CN (1) CN104053016B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139874A (en) * 2015-10-07 2018-06-08 精工爱普生株式会社 The display control method of information processing unit, tape printing apparatus and information processing unit

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10335105B2 (en) * 2015-04-28 2019-07-02 Siemens Healthcare Gmbh Method and system for synthesizing virtual high dose or high kV computed tomography images from low dose or low kV computed tomography images
CN106326477A (en) * 2016-08-31 2017-01-11 北京云图微动科技有限公司 Image downloading method and system
CN107105338A (en) * 2017-03-17 2017-08-29 深圳市先河***技术有限公司 The method and terminal asked for display image, video and response to network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641609A (en) * 2004-01-15 2005-07-20 奥林巴斯株式会社 Image treatment method and apparatus thereof
CN101146178A (en) * 2006-09-14 2008-03-19 奥林巴斯映像株式会社 Camera
CN101876992A (en) * 2009-11-17 2010-11-03 中国科学院自动化研究所 Method for managing image data warehouse
CN101901620A (en) * 2010-07-28 2010-12-01 复旦大学 Automatic generation method and edit method of video content index file and application

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932671A (en) * 2012-11-26 2013-02-13 北京奇虎科技有限公司 Method and server for supplying picture to computing terminal
CN103514241B (en) * 2012-12-07 2017-09-05 Tcl集团股份有限公司 picture loading method and system
CN103458016A (en) * 2013-08-21 2013-12-18 小米科技有限责任公司 Method and device for picture management and terminal device
CN103677942B (en) * 2013-12-30 2017-09-05 Tcl集团股份有限公司 A kind of method and apparatus of movable terminal to browse network pictures
CN103729825A (en) * 2013-12-31 2014-04-16 世纪龙信息网络有限责任公司 Method for processing picture in dynamic adaption to terminal
CN103870561B (en) * 2014-03-06 2017-05-17 网宿科技股份有限公司 Network picture processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641609A (en) * 2004-01-15 2005-07-20 奥林巴斯株式会社 Image treatment method and apparatus thereof
CN101146178A (en) * 2006-09-14 2008-03-19 奥林巴斯映像株式会社 Camera
CN101876992A (en) * 2009-11-17 2010-11-03 中国科学院自动化研究所 Method for managing image data warehouse
CN101901620A (en) * 2010-07-28 2010-12-01 复旦大学 Automatic generation method and edit method of video content index file and application

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108139874A (en) * 2015-10-07 2018-06-08 精工爱普生株式会社 The display control method of information processing unit, tape printing apparatus and information processing unit
CN108139874B (en) * 2015-10-07 2021-02-19 精工爱普生株式会社 Information processing apparatus, tape printing apparatus, and display control method for information processing apparatus

Also Published As

Publication number Publication date
CN104053016A (en) 2014-09-17

Similar Documents

Publication Publication Date Title
KR101820469B1 (en) Method and apparatus for transferring digital content from a computer to a mobile handset
CN104053016B (en) A kind of image preview method and device
CN105760405A (en) Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN102843425B (en) The method and communication terminal that replace local storage is stored based on cloud
CN106657174A (en) Data synchronizing and updating methods and data synchronizing and updating devices
CN105912421A (en) Backup method and device for storing data in mobile terminals, mobile terminals and terminals
CN110096660A (en) Method, apparatus and electronic equipment for loading page picture
CN107005608B (en) Prevent the method, apparatus and electronic equipment of camera interference antenna
CA2561102A1 (en) System and method for music synchronization in a mobile device
CN104185039A (en) Method and device for audio and video synchronous playing
CN103442026A (en) Application program processing method, device and system
CN103647916A (en) Picture storage method and apparatus thereof
CN101247316A (en) Data sharing method of communication terminal
CN104346057A (en) Background color adjusting method and background color adjusting device
CN104199973A (en) Image retrieval method and image retrieval device
KR100934989B1 (en) Content management method and apparatus
CN104469394A (en) Video resource acquiring method, background server, video client and system
CN106911937B (en) The configuration method and system of present banner background colour in a kind of live streaming
KR101537342B1 (en) System and method for providing the contents continuously service
CN103248678A (en) Data resource sharing method, server-side and client-side
JP5792326B2 (en) Reading service providing method, content providing server and system
CN104796738A (en) Information linkage method, device, server side and system
CN105991726A (en) Wallpaper recommendation method and server
CN105138285B (en) Sharing method, device and the equipment of photographed data
CN104243403A (en) Method capable of supporting online playing and equipment thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen jiangbolong electronic Limited by Share Ltd

Address before: 518057 A, B, C, D, E, F1, 8 Building, Financial Services Technology Innovation Base, No. 8 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen jiangbolong Electronic Co., Ltd.

CP03 Change of name, title or address