CN110096660A - Method, apparatus and electronic equipment for loading page picture - Google Patents

Method, apparatus and electronic equipment for loading page picture Download PDF

Info

Publication number
CN110096660A
CN110096660A CN201910267547.0A CN201910267547A CN110096660A CN 110096660 A CN110096660 A CN 110096660A CN 201910267547 A CN201910267547 A CN 201910267547A CN 110096660 A CN110096660 A CN 110096660A
Authority
CN
China
Prior art keywords
target photo
picture
load
information
page
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
CN201910267547.0A
Other languages
Chinese (zh)
Other versions
CN110096660B (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910267547.0A priority Critical patent/CN110096660B/en
Publication of CN110096660A publication Critical patent/CN110096660A/en
Priority to PCT/CN2020/074438 priority patent/WO2020199751A1/en
Application granted granted Critical
Publication of CN110096660B publication Critical patent/CN110096660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses the method, apparatus and electronic equipment for loading page picture.One specific embodiment of this method includes: to instruct in response to receiving the load of the Target Photo in the page, obtains the pictorial information of Target Photo, pictorial information includes picture load address;It determines and locally whether is stored with Target Photo;It is local without storage Target Photo in response to determining, Target Photo is obtained from long-range based on picture load address;If obtaining Target Photo success, Target Photo is shown in the page, and save Target Photo in locally default picture memory space, when receiving browse request of the user to Target Photo after current time, it shows Target Photo, flow can be saved, improve page response speed.

Description

Method, apparatus and electronic equipment for loading page picture
Technical field
The present invention relates to Internet technical field more particularly to a kind of method, apparatus and electricity for loading page picture Sub- equipment.
Background technique
It may include the information such as text, picture in the page that client is shown.The usually occupied data of text information Flow is less, and the occupied data traffic of pictorial information is usually larger.The page that client is shown at present is to pass through client Page access request is initiated to remote server, server sends page data, client root to client according to acquisition request Text, pictorial information etc. are loaded according to page data transmitted by server.
In the implementation of the present invention, inventor has found that aforesaid way at least has the following deficiencies: due to pictorial information Occupied data traffic is larger, when unstable networks, it is possible to which client can not be in time from remote server download pictures. In addition, after the completion of page presentation corresponding with the picture, abandoning the picture for the picture downloaded.When user is subsequent again It, can only be from remotely re-downloading the picture when wanting to browse the picture.Such loading method, required flow is larger, in addition, page Face response speed is also relatively slow.
Summary of the invention
The embodiment of the invention provides a kind of method, apparatus and electronic equipment for loading page picture, realize section Data traffic is saved, the purpose of page response speed is promoted.
In a first aspect, this method includes response the embodiment of the invention provides a kind of method for loading page picture It is instructed in the load for receiving the Target Photo in the page, obtains the pictorial information of the Target Photo, the pictorial information packet Include picture load address;Determine locally whether be stored with the Target Photo;It is local without the storage target figure in response to determining Piece, based on the picture load address from remotely obtaining the Target Photo;If the Target Photo success is obtained, in the page The Target Photo is shown in face, and saves the Target Photo in locally default picture memory space.
Optionally, if this method further includes obtaining the Target Photo failure, the load caching of the Target Photo is generated Information, and the load cache information is stored in default load information spatial cache, the load cache information includes the mesh It marks on a map the load address of keyword corresponding to piece and the Target Photo.
Optionally, this method further include: every prefixed time interval, be based on the corresponding keyword of the Target Photo from institute It states and reads the load cache information in default load information spatial cache, and executed according to the load address from long-range and obtained The operation of the Target Photo;If getting the Target Photo, the Target Photo is stored in default picture memory space.
Optionally, this method further includes generating the compressed picture reduced according to preset ratio and the guarantor of the Target Photo It deposits.
Optionally, the compressed picture and the default page data for showing the compressed picture are associated.
Optionally, the compressed picture includes the first compressed picture and the second compressed picture, first compressed picture Size is greater than the size of second compressed picture;Wherein, first compressed picture is for Target Photo described in user's preview Information, second compressed picture browse the information of the Target Photo for user in thumbnail.
Second aspect, the embodiment of the invention provides a kind of devices for loading page picture, comprising: pictorial information obtains Unit is taken, for the load instruction in response to receiving the Target Photo in the page, obtains the pictorial information of the Target Photo, The pictorial information includes picture load address;Determination unit, for determining locally whether be stored with the Target Photo;Picture Acquiring unit, for being obtained from long-range based on the picture load address in response to determining locally without the Target Photo is stored The Target Photo;Display unit, if showing the target figure in the page for obtaining the Target Photo success Piece, and the Target Photo is saved in locally default picture memory space.
Optionally, which further includes cache unit, and the cache unit is used for: if obtaining the Target Photo failure, The load cache information of the Target Photo is generated, and the load cache information is stored in default load information spatial cache, The load cache information includes the load address of keyword corresponding to the Target Photo and the Target Photo.
Optionally, picture acquiring unit is further used for: corresponding based on the Target Photo every prefixed time interval Keyword reads the load cache information from the default load information spatial cache, and is executed according to the load address From the operation for remotely obtaining the Target Photo;If getting the Target Photo, the Target Photo is stored in default figure Piece memory space.
Optionally, which further includes compression unit, and the compression unit is used for: generate the Target Photo according to pre- If compressed picture and the preservation of scale smaller.
Optionally, which further includes associative cell, and the associative cell is used for: by the compressed picture and default displaying The page data of the compressed picture is associated.
Optionally, the compressed picture includes the first compressed picture and the second compressed picture, first compressed picture Size is greater than second compressed picture;Wherein, information of first compressed picture for Target Photo described in user's preview, institute State the information that the second compressed picture browses the Target Photo for user in thumbnail.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more A processor realizes the step of method of any one of the above for loading page picture.
Fourth aspect, the embodiment of the invention provides a kind of computer-readable mediums, are stored thereon with computer program, should The step of method of any one of the above for loading page picture is realized when program is executed by processor.
Method, apparatus and electronic equipment provided in an embodiment of the present invention for loading page picture, by response to connecing The load instruction for receiving the Target Photo in the page, obtains the pictorial information of Target Photo, and pictorial information includes picture load ground Location;Then, it is determined that whether local be stored with above-mentioned Target Photo;It is then, local without storing above-mentioned Target Photo in response to determining, Target Photo is obtained from long-range based on picture load address, finally, opening up in the page if obtaining the Target Photo success Show the Target Photo, and saves the Target Photo in locally default picture memory space.The above method can will be obtained The picture taken is in local preservation, to can obtain in local above-mentioned when receiving the above-mentioned picture request of user's browsing later On the one hand picture can be saved every time from repeatedly flow consumption caused by same picture is remotely obtained, on the other hand can be promoted Page response speed.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the flow chart of one embodiment of the method according to the present invention for loading page picture;
Fig. 2 is the schematic diagram according to an application scenarios of the method for loading page picture of the application;
Fig. 3 is the flow chart of another embodiment of the method according to the present invention for loading page picture;
Fig. 4 is the structural schematic diagram of one embodiment of the device according to the present invention for loading page picture;
It is therein exemplary that Fig. 5 is that the method for loading page picture of one embodiment of the present of invention can be applied to System architecture;
Fig. 6 is the schematic diagram of the basic structure of the electronic equipment provided according to embodiments of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details is to help understanding.They should be thought only exemplary.Therefore it will be appreciated by those of ordinary skill in the art that, It can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
Referring to FIG. 1, it illustrates the streams of one embodiment of the method according to the present invention for loading page picture Journey.The method for being used for loading page picture as shown in Figure 1, comprising the following steps:
Step 101, it is instructed in response to receiving the load of the Target Photo in the page, obtains the picture letter of Target Photo Breath, pictorial information includes picture load address.
It in the present embodiment, may include at least in the page data that any internet platform is sent to subscriber terminal equipment One image data.Above-mentioned image data may include picture type and picture load address.Here picture type can be with Including picture size.Picture load address may include the corresponding uniform resource locator of picture (Uniform Resource Locator, URL).
User can be operated by various to the request for issuing browsing pages with terminal device.Such as by a browser The operation of the corresponding uniform resource locator of input page, or by clicking the applications client figure being arranged in terminal device Target operates the request that browsing pages are issued to terminal device.Terminal device can be according to the received page data of institute and then generation Load instruction to the Target Photo in the page.Goal picture can be the display screen current presentation of terminal device Picture included by the page.
In application scenes, above-mentioned load instruction be can be according to user to position corresponding to the picture in the page Selection operation generate.
Above-mentioned terminal device can be instructed according to the load of Target Photo, obtain the pictorial information of Target Photo, above-mentioned figure Piece information may include picture type and picture load address.
Picture type may include picture size classification.In application scenes, above-mentioned picture type may include original Figure, the first compressed picture and the second compressed picture.The size of first compressed picture is less than the size of original image, the second compressed picture Size of the size less than the first compressed picture.The size of first compressed picture is greater than the size of the second compressed picture.Here original Figure can refer to picture provided by page developer not through overcompression, with original size.
For same picture, original image, the first compressed picture, the corresponding URL of the second compressed picture can be with It is not identical.
Above-mentioned terminal device can obtain the pictorial information of above-mentioned Target Photo in received page data.
Step 102, determine locally whether be stored with Target Photo.
In the present embodiment, above-mentioned terminal device can determine locally whether be stored with Target Photo.
Such as local whether be stored with is determined according to the picture identification symbol generated of URL corresponding to above-mentioned Target Photo Above-mentioned Target Photo.Above-mentioned picture identification symbol can be number combination, character combination or number and the combination of character etc..
Specifically, the picture identification symbol that default picture identification symbol generation method generates Target Photo can be used, then will Picture identification symbol is matched in local storage space.If successful match, it is determined that Target Photo has been locally stored, otherwise really It is fixed local without storage Target Photo.
Each picture in multiple pictures and above-mentioned multiple pictures can be previously stored in local storage space to respectively correspond Picture identification symbol.In above-mentioned local storage space, the icon identifier associated storage of picture and picture.Wherein, above-mentioned figure Piece identifier is generated using above-mentioned default picture identification symbol generation method.
Step 103, local without storage Target Photo in response to determining, target figure is obtained from long-range based on picture load address Piece.
In the present embodiment, if step 102 determines that local no above-mentioned Target Photo of storage, terminal device can be based on The picture load address of above-mentioned Target Photo is by various wired or wireless connection types from remotely obtaining above-mentioned Target Photo.
That is, terminal device downloads above-mentioned mesh by network from remote server according to the load address of picture It marks on a map piece.
Step 104, if obtaining Target Photo success, Target Photo is shown in the page, and store in locally default picture Target Photo is saved in space.
It in the present embodiment, can be corresponding in the Target Photo in the page if getting Target Photo in step 103 Target Photo is rendered at position, to show above-mentioned Target Photo in the page.Page rendering is research extensively at present With the well-known technique of application, do not repeat herein.
In addition, above-mentioned terminal device can be protected in locally default picture memory space after getting Target Photo Target Photo is deposited, to show above-mentioned Target Photo when receiving browse request of the user to Target Photo after current time. Flow consumed by picture resource is obtained from long-range repeatedly in this way, can save.On the other hand, it is browsed for the second time in user same When the page, the page directly can be rendered according to local picture and other data are stored in, so as to accelerate to show The speed of the page.
The method that the above embodiment of the present invention provides in response to the load for receiving the Target Photo in the page by referring to It enables, obtains the pictorial information of Target Photo, pictorial information includes picture load address;Then, it is determined that whether local be stored with State Target Photo;Then, local without above-mentioned Target Photo is stored in response to determining, mesh is obtained from long-range based on picture load address It marks on a map piece, finally, showing Target Photo in the page, and in locally default picture memory space if obtaining Target Photo success Interior preservation Target Photo.The above method can be by acquired picture in local preservation, to need to browse in user later above-mentioned When picture, above-mentioned picture can be locally being obtained, on the one hand can saved every time from the long-range flow for obtaining picture and consuming, separately On the one hand the speed of displayed page information can be promoted.
In some optional implementations of the present embodiment, the above-mentioned method for loading page picture can also be wrapped It includes: generating the compressed picture of Target Photo reduced according to preset ratio and preservation.
It, can be according to preset ratio after getting the Target Photo in the page in these optional implementations Target Photo is reduced, to generate the compressed picture of Target Photo.In addition, terminal device can also be by above-mentioned Target Photo Compressed picture is stored in local.It, can be at this when receiving browse request of the user to the compressed picture of above-mentioned Target Photo Ground obtains and shows above-mentioned compressed picture.Due to generating compressed picture according to Target Photo in local, can save from remotely obtaining Flow consumed by the compressed picture of Target Photo is taken, so as to promote the speed of displayed page information.
Still optionally further, the above-mentioned method for loading page picture can also include by the compressed picture and presetting Show that the page data of compressed picture is associated.
In these optional implementations, show that the page of the compressed picture of Target Photo (herein referring to original image) can be with It shows that the page of Target Photo is not identical, compressed picture and the default page data for showing compressed picture can be associated. In practice, the uniform resource locator for showing compressed picture and the identifier of the compressed picture locally saved can be closed Connection, generates the incidence relation of the uniform resource locator of compressed picture and the identifier of compressed picture.The identifier of compressed picture It may include the field of compressed picture storage address.In this way, the page of the compressed picture when the displaying Target Photo for receiving user It, can be according to above-mentioned incidence relation, directly from the local compressed picture for obtaining Target Photo, without basis when the instruction in face The corresponding load address of the compressed picture of Target Photo, so can be with from the compressed picture for remotely obtaining above-mentioned Target Photo Data traffic is further saved, the speed of page response is improved.
In application scenes, above-mentioned compressed picture may include the first compressed picture and the second compressed picture, and first The size of compressed picture is greater than the size of the second compressed picture;Wherein, letter of first compressed picture for user's preview Target Photo Breath, the second compressed picture browse the information of the Target Photo for user in thumbnail.
With further reference to Fig. 2, it illustrates the flow charts of another embodiment of the method for loading page picture.Such as Shown in Fig. 2, this is used for the process of the method for loading page picture, comprising the following steps:
Step 201, it is instructed in response to receiving the load of the Target Photo in the page, obtains the picture letter of Target Photo Breath, pictorial information includes picture load address.
Step 201 is identical as the step 101 in embodiment illustrated in fig. 1, does not repeat herein.
Step 202, determine locally whether be stored with Target Photo.
Step 202 is identical as the step 102 in embodiment illustrated in fig. 1, does not repeat herein.
Step 203, local without storage Target Photo in response to determining, target figure is obtained from long-range based on picture load address Piece.
Step 203 is identical as the step 103 in embodiment illustrated in fig. 1, does not repeat herein.
Step 204, if obtaining Target Photo success, Target Photo is shown in the page, and store in locally default picture Target Photo is saved in space.
Step 204 is identical as the step 104 in embodiment illustrated in fig. 1, does not repeat herein.
Step 205, if obtaining Target Photo failure, the load cache information of Target Photo is generated, and load caching is believed Breath is stored in default load information spatial cache, and load cache information includes keyword corresponding to Target Photo and Target Photo Load address.
In the present embodiment, if obtaining Target Photo failure from long-range in step 203, adding for Target Photo can be generated Carry cache information.Above-mentioned load cache information may include the load of keyword corresponding to Target Photo and Target Photo Location.Keyword corresponding to goal picture can be based on the corresponding load address generation of Target Photo.Here Keyword corresponding to Target Photo, which can be, generates cryptographic Hash etc. to above-mentioned load address using hash algorithm.
Load information spatial cache can be preset, when obtaining target figure from long-range according to the load address of Target Photo After piece failure, the load cache information of the Target Photo can be firstly generated.Above-mentioned load cache information is in addition to including target figure Except the load address of the corresponding keyword of piece and Target Photo, can also include the corresponding page of Target Photo mark, And position data etc. of the Target Photo in the above-mentioned page.Any load can be directly read from load information spatial cache Cache information can be slow according to load after getting corresponding picture according to load address indicated by the load cache information Target Photo obtained medium is associated with to the corresponding position of the above-mentioned page by mark, the position data for depositing the page in information.
In the present embodiment, the size of above-mentioned default load information spatial cache can fix.It can be every preset time Interval, or before storing new load cache information into default load information spatial cache every time, determine that above-mentioned preset adds Whether the information stored in information carrying breath spatial cache has exceeded preset limit, if exceeding preset limit, according to storage The sequence of time from long to short deletes the pre-stored load cache information of preset quantity.
Step 206, every prefixed time interval, sky is cached from default load information based on the corresponding keyword of Target Photo Between middle reading load cache information, and executed according to load address from the long-range operation for obtaining Target Photo.
It in the present embodiment, can be every prefixed time interval, according to the corresponding keyword of Target Photo from default load At least one load cache information is read in information cache space to be executed according to load address indicated by load cache information From the long-range operation for obtaining Target Photo.
Above-mentioned prefixed time interval can be arbitrary time span, such as 1 second, 3 seconds, 5 seconds etc..Specific time interval can To be set according to specific application scenarios, herein without limiting.
That is, for the Target Photo in the page, when the unsuccessful situation of Target Photo in loading page for the first time Under, Target Photo can be loaded into cache information and be saved in default load information spatial cache.It later, can be when default Between interval the picture load cache information of the Target Photo can be read from default load information spatial cache, and execute from remote Journey obtains the operation of the Target Photo.Until getting the Target Photo.
Step 207, if getting Target Photo, Target Photo is stored in default picture memory space.
In the present embodiment, it can be saved to the Target Photo that cache information obtains is loaded according to picture.When connecing When receiving browse request of the user to Target Photo, above-mentioned Target Photo can be shown.Such as in the page where Target Photo It is middle to show above-mentioned Target Photo.Or instruct according to the demand of user, individually show above-mentioned Target Photo.
From figure 2 it can be seen that compared with the corresponding embodiment of Fig. 1, in the present embodiment for loading page picture If the process of method, which highlights, obtains Target Photo failure, the load cache information of Target Photo is cached, and according to slow Picture load address indicated by the load cache information deposited is executed from the step of the long-range operation for obtaining picture.The above method can Actively to obtain Target Photo according to the load cache information of caching, is saved, received after getting Target Photo Above-mentioned Target Photo is shown after to the command adapted thereto of user.Scheme provided by the present embodiment on the basis of saving flow, Backstage obtains this access and loads successful picture not according to user instruction, and opens up when user browses these pictures again It is existing.Since the opportunity that shows of the information acquired in backstage is bonded with user demand, it can further improve user experience.
In some optional implementations of the present embodiment, the above-mentioned method for loading page picture can also be wrapped It includes: generating the compressed picture of Target Photo reduced according to preset ratio and preservation.
Still optionally further, the above-mentioned method for loading page picture can also include generation Target Photo according to pre- If compressed picture and the preservation of scale smaller, to show above-mentioned compression when receiving browse request of the user to compressed picture Picture.
Still optionally further, the above-mentioned method for loading page picture can also include by compressed picture and default displaying The page data of compressed picture is associated.
In application scenes, compressed picture may include the first compressed picture and the second compressed picture, the first compression The size of picture is greater than the size of the second compressed picture;Wherein, the first compressed picture for user's preview Target Photo information, Information of two compressed pictures for user's browsing objective picture in thumbnail.
Referring to FIG. 3, it illustrates a principle flow charts of the invention.It, can be with as shown in figure 3, in step 301 The instruction for obtaining Target Photo is received, the operation for obtaining Target Photo is executed, then judgement obtains Target Photo in step 302 Whether succeed.If so, executing the operation of step 303, Target Photo is shown in the page, and in locally default picture memory space Interior preservation Target Photo.If it is not, then entering the operation for executing step 304~306.Step 304, the load for generating Target Photo is slow Information is deposited, and load cache information is stored in default load information spatial cache, load cache information includes that Target Photo institute is right The load address of the keyword and Target Photo answered.Step 305, corresponding based on Target Photo every prefixed time interval Keyword reads load cache information from default load information spatial cache, is executed according to load address from long-range and obtains target The operation of picture.Step 306, if getting Target Photo, Target Photo is stored in default picture memory space.In addition, also Further Target Photo can be analyzed and processed, such as generate the compressed picture of Target Photo, for user's browsing pictures Preview graph, or for user's browsing pictures etc. in lists.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, the present invention provides one kind to be used for loaded page One embodiment of the device of face picture, the Installation practice is corresponding with embodiment of the method shown in FIG. 1, which specifically may be used To be applied in various electronic equipments.
As shown in figure 4, the device for loading page picture of the present embodiment include: pictorial information acquiring unit 401, really Order member 402, picture acquiring unit 403 and display unit 404.Wherein, pictorial information acquiring unit 401, in response to connecing The load instruction for receiving the Target Photo in the page, obtains the pictorial information of the Target Photo, and the pictorial information includes figure Piece load address;Determination unit 402, for determining locally whether be stored with the Target Photo;Picture acquiring unit 403 is used In local without storing the Target Photo in response to determining, based on the picture load address from remotely obtaining the target figure Piece;Display unit 404, if showing the Target Photo in the page, and at this for obtaining the Target Photo success Ground, which is preset, saves the Target Photo in picture memory space.
In the present embodiment, for the pictorial information acquiring unit 401 of the device of loading page picture, determination unit 402, The specific processing of picture acquiring unit 403 and display unit 404 and its brought technical effect can be corresponding real with reference to Fig. 1 respectively The related description of step 101 in example, step 102, step 103 and step 104 is applied, details are not described herein.
In some optional implementations of the present embodiment, the device 400 for loading page picture further includes caching Unit (not shown).Cache unit is used for: if obtaining the Target Photo failure, the load for generating the Target Photo is slow Information is deposited, and the load cache information is stored in default load information spatial cache, the load cache information includes described The load address of keyword corresponding to Target Photo and the Target Photo.
In some optional implementations of the present embodiment, picture acquiring unit is further used for: every preset time The load caching is read at interval based on the corresponding keyword of the Target Photo from the default load information spatial cache Information, and executed according to the load address from the operation for remotely obtaining the Target Photo;If getting the Target Photo, The Target Photo is stored in default picture memory space.
In some optional implementations of the present embodiment, the device 400 for loading page picture further includes compression Unit (not shown).Compression unit is used for: generating the compressed picture of Target Photo reduced according to preset ratio and preservation.
In some optional implementations of the present embodiment, the device 400 for loading page picture further includes association Unit (not shown).Associative cell is used for: compressed picture and the default page data for showing compressed picture are associated.
In some optional implementations of the present embodiment, compressed picture includes the first compressed picture and the second compression figure The size of piece, the first compressed picture is greater than the second compressed picture;Wherein, letter of first compressed picture for user's preview Target Photo Breath, information of second compressed picture for user's browsing objective picture in thumbnail.
Referring to FIG. 5, the method for loading page picture that Fig. 5 shows one embodiment of the present of invention can be applied In exemplary system architecture therein.
As shown in figure 5, system architecture may include terminal device 501,502,503, network 504 and server 505.Network 504 between terminal device 501,502,503 and server 505 to provide the medium of communication link.Network 504 may include Various connection types, such as wired, wireless communication link or fiber optic cables etc..
Terminal device 501,502,503 can be interacted by network 504 with server 505, to receive or send message etc.. Various client applications can be installed on terminal device 501,502,503, such as the application of web browser applications, searching class, Domestic News class application.
Terminal device 501,502,503 can be hardware, be also possible to software.When terminal device 501,502,503 is hard When part, it can be the various electronic equipments with display screen and supported web page browsing, including but not limited to smart phone, plate Computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic Image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, move State image expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..When terminal is set Standby 501,502,503 when being software, may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or Software module (such as providing the software of Distributed Services or software module), also may be implemented into single software or software mould Block.It is not specifically limited herein.
Terminal device 501,502,503 can receive the information browse instruction of user, and information browse instruction may include page Face browsing instructions.Terminal device can instruct in returned data according to information browse, determine page data information.
Server 505 can provide various services, such as the acquisition of information that receiving terminal apparatus 501,502,503 is sent is asked It asks, information acquisition request is analyzed and processed, analysis and processing result (such as page data information) is sent to terminal device.
It should be noted that the method provided by the embodiment of the present invention for loading page picture is generally by terminal device 501, it 502,503 executes, correspondingly, the device for loading page picture is generally positioned in terminal device 501,502,503.
It should be understood that the number of terminal device, network and server in Fig. 5 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 6, it illustrates the signals of the basic structure for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Figure.Electronic equipment shown in Fig. 6 is only an example, should not function to the embodiment of the present invention and use scope bring it is any Limitation.
As shown in fig. 6, electronic equipment may include one or more processors 601, storage device 602.Storage device 602 User stores one or more programs.One or more programs in storage device 602 can be by one or more processors 601 It executes.When one or more programs are executed by one or more processors, so that this may be implemented in one or more processors The above-mentioned function of being limited in the method for invention.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet Include pictorial information acquiring unit, determination unit, picture acquiring unit and display unit.Wherein, the title of these modules is at certain In the case of do not constitute restriction to the module itself, for example, pictorial information acquiring unit is also described as " in response to connecing The load instruction for receiving the Target Photo in the page, obtains the unit of the pictorial information of Target Photo ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Of the invention Computer-readable medium can be computer-readable signal media or computer readable storage medium either the two Any combination.Computer readable storage medium for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of computer readable storage medium can To include but is not limited to: having electrical connection, portable computer diskette, hard disk, the random access storage of one or more conducting wires Device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact magnetic Disk read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are set by this When standby execution, so that the equipment: the load in response to receiving the Target Photo in the page instructs, and obtains the picture of Target Photo Information, pictorial information include picture load address;It determines and locally whether is stored with Target Photo;It is local without storage in response to determining Target Photo obtains Target Photo from long-range based on picture load address;If obtaining Target Photo success, mesh is shown in the page It marks on a map piece, and saves Target Photo in locally default picture memory space.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (14)

1. a kind of method for loading page picture characterized by comprising
Load in response to receiving the Target Photo in the page instructs, and obtains the pictorial information of the Target Photo, the figure Piece information includes picture load address;
Determine locally whether be stored with the Target Photo;
It is local without storing the Target Photo in response to determining, based on the picture load address from remotely obtaining the target figure Piece;
If obtaining the Target Photo success, the Target Photo is shown in the page, and store in locally default picture The Target Photo is saved in space.
2. the method according to claim 1, wherein the method also includes:
If obtaining the Target Photo failure, the load cache information of the Target Photo is generated, and the load is cached and is believed Breath is stored in default load information spatial cache, the load cache information include keyword corresponding to the Target Photo and The load address of the Target Photo.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Every prefixed time interval, based on the corresponding keyword of the Target Photo from the default load information spatial cache The load cache information is read, and is executed according to the load address from the operation for remotely obtaining the Target Photo;
If getting the Target Photo, the Target Photo is stored in default picture memory space.
4. method according to claim 1 or 3, which is characterized in that the method also includes:
Generate the compressed picture of the Target Photo reduced according to preset ratio and preservation.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The compressed picture and the default page data for showing the compressed picture are associated.
6. according to the method described in claim 4, it is characterized in that, the compressed picture includes the first compressed picture and the second pressure Contract drawing piece, the size of first compressed picture are greater than the size of second compressed picture;Wherein, first compressed picture For the information of Target Photo described in user's preview, second compressed picture browses the Target Photo for user in thumbnail Information.
7. a kind of device for loading page picture characterized by comprising
Pictorial information acquiring unit obtains the target for instructing in response to the load for receiving the Target Photo in the page The pictorial information of picture, the pictorial information include picture load address;
Determination unit, for determining locally whether be stored with the Target Photo;
Picture acquiring unit, for local without storing the Target Photo in response to determining, based on the picture load address from Remotely obtain the Target Photo;
Display unit, if showing the Target Photo in the page, and in local for obtaining the Target Photo success The Target Photo is saved in default picture memory space.
8. device according to claim 7, which is characterized in that described device further includes cache unit, the cache unit For:
If obtaining the Target Photo failure, the load cache information of the Target Photo is generated, and the load is cached and is believed Breath is stored in default load information spatial cache, the load cache information include keyword corresponding to the Target Photo and The load address of the Target Photo.
9. device according to claim 8, which is characterized in that the picture acquiring unit is further used for:
Every prefixed time interval, based on the corresponding keyword of the Target Photo from the default load information spatial cache The load cache information is read, and is executed according to the load address from the operation for remotely obtaining the Target Photo;
If getting the Target Photo, the Target Photo is stored in default picture memory space.
10. the device according to claim 7 or 9, which is characterized in that described device further includes compression unit, the compression Unit is used for:
Generate the compressed picture of the Target Photo reduced according to preset ratio and preservation.
11. device according to claim 10, which is characterized in that described device further includes associative cell, the association table Member is used for:
The compressed picture and the default page data for showing the compressed picture are associated.
12. device according to claim 10, which is characterized in that the compressed picture includes the first compressed picture and second The size of compressed picture, first compressed picture is greater than second compressed picture;Wherein, first compressed picture for The information of Target Photo described in the preview of family, second compressed picture browse the letter of the Target Photo for user in thumbnail Breath.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Shi Shixian method for example as claimed in any one of claims 1 to 6.
CN201910267547.0A 2019-04-03 2019-04-03 Method and device for loading page pictures and electronic equipment Active CN110096660B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910267547.0A CN110096660B (en) 2019-04-03 2019-04-03 Method and device for loading page pictures and electronic equipment
PCT/CN2020/074438 WO2020199751A1 (en) 2019-04-03 2020-02-06 Method and apparatus for loading page picture, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910267547.0A CN110096660B (en) 2019-04-03 2019-04-03 Method and device for loading page pictures and electronic equipment

Publications (2)

Publication Number Publication Date
CN110096660A true CN110096660A (en) 2019-08-06
CN110096660B CN110096660B (en) 2022-02-11

Family

ID=67444258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910267547.0A Active CN110096660B (en) 2019-04-03 2019-04-03 Method and device for loading page pictures and electronic equipment

Country Status (2)

Country Link
CN (1) CN110096660B (en)
WO (1) WO2020199751A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110929197A (en) * 2019-11-27 2020-03-27 杭州安恒信息技术股份有限公司 Method and device for previewing and loading webpage picture
CN110990611A (en) * 2019-12-03 2020-04-10 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium
CN111625308A (en) * 2020-04-28 2020-09-04 北京字节跳动网络技术有限公司 Information display method and device and electronic equipment
WO2020199751A1 (en) * 2019-04-03 2020-10-08 北京字节跳动网络技术有限公司 Method and apparatus for loading page picture, and electronic device
CN112417339A (en) * 2020-12-02 2021-02-26 北京齐尔布莱特科技有限公司 Page loading method and device, computing equipment and readable storage medium
CN112615911A (en) * 2020-12-10 2021-04-06 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN112948728A (en) * 2019-11-26 2021-06-11 北京沃东天骏信息技术有限公司 Method and device for browsing pictures
CN113033173A (en) * 2021-04-26 2021-06-25 广州文石信息科技有限公司 Streaming document picture loading method and device, electronic equipment and storage medium
CN113449215A (en) * 2020-03-26 2021-09-28 北京沃东天骏信息技术有限公司 Method and device for loading picture

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752107B (en) * 2020-12-26 2023-02-10 广东工业大学 Webpage picture preprocessing method, system, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914495A (en) * 2013-01-09 2014-07-09 阿里巴巴集团控股有限公司 Page preview method and system
US20140310372A1 (en) * 2013-04-12 2014-10-16 Tencent Technology (Shenzhen) Company Limited Method, terminal, cache server and system for updating webpage data
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN108769195A (en) * 2018-05-29 2018-11-06 北京搜狐新动力信息技术有限公司 A kind of processing method and processing device of media data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096660B (en) * 2019-04-03 2022-02-11 北京字节跳动网络技术有限公司 Method and device for loading page pictures and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914495A (en) * 2013-01-09 2014-07-09 阿里巴巴集团控股有限公司 Page preview method and system
US20140310372A1 (en) * 2013-04-12 2014-10-16 Tencent Technology (Shenzhen) Company Limited Method, terminal, cache server and system for updating webpage data
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN108769195A (en) * 2018-05-29 2018-11-06 北京搜狐新动力信息技术有限公司 A kind of processing method and processing device of media data

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020199751A1 (en) * 2019-04-03 2020-10-08 北京字节跳动网络技术有限公司 Method and apparatus for loading page picture, and electronic device
CN112948728A (en) * 2019-11-26 2021-06-11 北京沃东天骏信息技术有限公司 Method and device for browsing pictures
CN110929197A (en) * 2019-11-27 2020-03-27 杭州安恒信息技术股份有限公司 Method and device for previewing and loading webpage picture
CN110990611A (en) * 2019-12-03 2020-04-10 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium
CN110990611B (en) * 2019-12-03 2023-04-21 北京奇艺世纪科技有限公司 Picture caching method and device, electronic equipment and storage medium
CN113449215A (en) * 2020-03-26 2021-09-28 北京沃东天骏信息技术有限公司 Method and device for loading picture
CN111625308A (en) * 2020-04-28 2020-09-04 北京字节跳动网络技术有限公司 Information display method and device and electronic equipment
CN112417339A (en) * 2020-12-02 2021-02-26 北京齐尔布莱特科技有限公司 Page loading method and device, computing equipment and readable storage medium
CN112615911A (en) * 2020-12-10 2021-04-06 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN112615911B (en) * 2020-12-10 2023-06-16 北京五八信息技术有限公司 Picture loading method, picture loading device and electronic equipment
CN113033173A (en) * 2021-04-26 2021-06-25 广州文石信息科技有限公司 Streaming document picture loading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110096660B (en) 2022-02-11
WO2020199751A1 (en) 2020-10-08

Similar Documents

Publication Publication Date Title
CN110096660A (en) Method, apparatus and electronic equipment for loading page picture
KR101496875B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN110688595B (en) File online preview method, device, equipment and storage medium
CN107040584B (en) Method and device for downloading picture by client
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
CN112559927B (en) Webpage loading method and device
CN106844705B (en) Method and apparatus for displaying multimedia content
US11032683B2 (en) Method and apparatus for publishing cloud resource
CN109992406B (en) Picture request method, picture request response method and client
CN105867714A (en) Application downloading method, apparatus and system
CN107291913B (en) Hypertext markup language webpage loading method and device
CN105871945A (en) Image information sending method and device, and waterfall flow layout method and device
CN113535032A (en) Information display method and device, electronic equipment and storage medium
CN108256014A (en) Page display method and device
CN106250536A (en) A kind of space page background method to set up, Apparatus and system
CN106354792B (en) Webpage display method and device
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
CN108134811A (en) The methods, devices and systems that file destination is distributed or downloaded
CN110838969B (en) Picture transmission method, device, equipment and medium
CN108959393B (en) Dynamic picture processing method, device and storage medium
CN103561068A (en) Method and device for improving speed of web page browsing
CN105721604A (en) Data sending method and device based on downloading request of user
CN108572985B (en) Page display method and device
CN112016280B (en) File editing method and device and computer readable medium
CN112203158B (en) Image display method, device, system, equipment and medium

Legal Events

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