CN100428150C - Method for processing pictures of embedded WED browser - Google Patents

Method for processing pictures of embedded WED browser Download PDF

Info

Publication number
CN100428150C
CN100428150C CNB2006100607753A CN200610060775A CN100428150C CN 100428150 C CN100428150 C CN 100428150C CN B2006100607753 A CNB2006100607753 A CN B2006100607753A CN 200610060775 A CN200610060775 A CN 200610060775A CN 100428150 C CN100428150 C CN 100428150C
Authority
CN
China
Prior art keywords
picture
described control
user
handled
file
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
CNB2006100607753A
Other languages
Chinese (zh)
Other versions
CN101075186A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2006100607753A priority Critical patent/CN100428150C/en
Publication of CN101075186A publication Critical patent/CN101075186A/en
Application granted granted Critical
Publication of CN100428150C publication Critical patent/CN100428150C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A method for processing picture embedded in Web browser includes judging whether control element of picture-processing is erected on or not and calling interface of said control element to select picture required to be up-transmitted if it is or otherwise automatically downloading and erecting said control element then carrying out automatic-processing on said picture as per preset picture-processing policy and limited condition as well as filling file path of processed new picture automatically into file selection frame in webpage.

Description

Embed the image processing method of WEB browser
Technical field
The present invention relates to computing machine picture treatment technology, more particularly, relate to a kind of image processing method of the WEB of embedding browser.
Background technology
The fast development of internet, quickened the digitizing process of information, and wherein picture, chart, layout files, multimedia etc. have just accounted for more than 80%, picture is directly perceived with it, color is strong, expressive force is strong, form is abundant, transmission fast (other multimedia messagess relatively) and more and more be subjected to the favor of news media, the network media, and picture has become the very pith of medium digital resource.
Present C2C e-commerce website; usually can do restriction (is that JPG and GIF form and size can not surpass 120KB etc. as the form of picture file) to the picture file uploaded; do not meet the situation of qualifications for the picture file of uploading, then require the user that picture file itself is handled to meet the picture file requirement for restriction.But according to common disposal route, the user need use special picture process software to come picture is handled, and therefore has following shortcoming:
1) special picture process software is difficult for obtaining.If buy the picture process software of specialty, as Photoshop, ACDSee, the software acquisition expenses is higher, and the general user is difficult to bear.
2) study and working costs effort.The study and the use of software need spended time, and computing machine uses the basis to need the user to have preferably, and technical threshold is higher.
3) picture process software feature richness but use complicated.Though the picture process software provides a lot of rich functions, the user does not also know how to make up and to use these functions, and its picture file is met the requirements.
4) picture is handled and can not be submitted to flow process to integrate with merchandise news, just can carry out the picture file processing and need to start other software, and operating process has some setbacks.
Though some e-commerce website is as the Eachnet Http:// www.ebay.com.cn, can provide image processing function for the user.The image processing function of Eachnet also is that realize in the ActiveX space by embedded web page, can be when submitting the commodity picture to, and the commodity picture is compressed satisfying its qualifications to picture, but following shortcoming is arranged.
1) though the commodity data whether successfully submit to, picture all will be uploaded to server, so just caused unnecessary picture to upload action, server resource and bandwidth are caused waste, specifically can be divided into following two kinds of situations: if the user is after once submitting the commodity data mistake to, abandon submitting to commodity, then picture is still unnecessarily uploaded once; If the user after submitting commodity data to, makes amendment to the commodity picture of current selection again or replaces, then need the picture of up-to-date selection is uploaded once again.
2) processing policy of picture can not be set by the user, and the user can only select the picture that need handle, but can not intervene the picture processing policy, therefore may cause picture to be influenced visual effect by excess processes.
Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned picture at prior art is handled defectives such as inconvenience, a kind of image processing method of the WEB of embedding browser is provided, but robotization picture file is handled, need not consider how to carry out concrete picture editor's operation, simplified user's operation.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of image processing method that embeds the WEB browser, can be applicable to e-commerce website, when the user needs uploading pictures, may further comprise the steps:
A. judge whether the user has installed the control that picture is handled;
If b., the interface that then calls described control is selected the picture that need upload and execution in step c; Otherwise, download and install described control automatically, the interface that calls described control is then selected the picture that need upload and execution in step c;
C. according to default picture processing policy and qualifications described picture is handled automatically, and the new picture file path after will handling is filled up in the file selection box in the browser automatically.
In method of the present invention, if user installation the control handled of picture, then step b further comprises: described control is carried out the initialization setting, and the picture processing policy and the qualifications of acquiescence are set.
In method of the present invention, described picture processing policy can be selected according to the menu of operation interface by the user, also can default setting is good in advance by system.
In method of the present invention, step c further comprises: c1. judges whether successful picture is handled;
If c2., then newly-generated picture file path is set to the file selection box in the browser, and points out and handle successfully, close the page at described control place; Otherwise failure is handled in prompting, and the page of closing described control place.
In method of the present invention, among the step b, described automatic download is also installed described control and specifically be may further comprise the steps:
S1. described control is packaged into compressed package, and it is kept in the WEB server corresponding virtual catalogue;
S2. write the Html web page files, and write the Html code that described compressed package is quoted;
S3. when the user browsed described web page files, IE kernel browser automatically displaying number signature was also pointed out user installation.
In method of the present invention, step S1 also comprises: described compressed package is carried out digital signature.
In method of the present invention, if the user had installed described control, then step b further comprises: directly move described control.
In method of the present invention, the auto-update flow process of described control specifically comprises: the specification of described compressed package files being quoted according to the Html webpage, the version number of described control file is upgraded, and the version number that described compressed package and Html webpage are quoted code is upgraded.
In method of the present invention, described picture processing policy comprises that quality is preferential, file size is preferential and compression speed is preferential.
In method of the present invention, among the step a, described control adopts the ActiveX technological development, and com interface externally is provided, can be by JavaScript, VBScript script language calling.
The invention has the beneficial effects as follows, the present invention is based on the ActiveX technology, can picture be carried out robotization handle according to default picture processing policy, obtain satisfactory new picture file, and the path of new picture file can be filled up in the picture file choice box automatically.Simplified the picture work of treatment, reduced technical requirement, thereby improved the issue speed of commodity the user.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the process flow diagram of the image processing method of embedding WEB browser of the present invention;
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below by specific embodiment and referring to accompanying drawing, the present invention is described in detail.
The picture process software of the embedding IE browser execution that the present invention proposes, this software is issued with the form of ActiveX control, automatic installation and upgrade in webpage, and integrated with the commodity details page.The present invention supports IE kernel browser, non-IE kernel but support the browser of ActiveX also can support.
Because the IE kernel is supported ActiveX, thus ActiveX can be supported based on the WEB browser of IE kernel, unless used specific technology shielding.Non-IE kernel browser is not generally supported ActiveX, realizes but can carry out particular technology yet.So the present invention can use in the WEB browser of supporting ActiveX, includes but not limited to the WEB browser of IE kernel.
Process flow diagram below with reference to the image processing method of the embedding WEB browser shown in Fig. 1 is that example describes, and may further comprise the steps:
Step 100: when the user needs uploading pictures, can click page control inlet button, pat " easily uploading pictures " button of web page as click.But need submit in the page at commodity, for the page that embeds ActiveX control provides an inlet, for example, click commodity and submit button in the page to, can eject the Html page that control is quoted, on this page, can operate the picture file of this locality.
Step 105: at this moment, will eject the new page of OCX control.The OCX control is to adopt the ActiveX technological development, and com interface externally is provided, and can be solved the communication issue of control and webpage thus by JavaScript, VBScript script language calling.For example, in page script, the picture processing policy is provided with, obtains the path or the like of the new picture file after the processing.
Step 110,115,120: judge whether the user has installed the OCX control, if installation is arranged, the page script language then calls the control interface, carry out the initialization setting, and the picture processing policy that default (acquiescence) is set is (preferential as quality, file size is preferential, the compression speed priority scheduling), qualifications (is that JPG and GIF form and size can not surpass 120KB etc. as the form of picture file) etc.Otherwise, then download OCX control and installation automatically.
Step 125,130: after the initialization of OCX control is finished, similar operations interface on new web page, and can on this interface, select picture to carry out picture and handle.Take the picture processing policy to carry out robotization to picture and handle, the picture processing policy is to be selected by the user, also can set default processing policy in advance.
The present invention handles selected picture file, generates new picture file, and the path of picture file is passed to webpage automatically, and itself does not carry out the upload operation of picture file.
Picture is handled core and adopted the GDI+ shape library, and GDI+ designs with object-oriented method, is easy to use, and is powerful.Unpromising user directly provides picture editing functions such as picture compression, reduction on graphics process, but, robotization picture file is handled, the user according to the picture processing policy of setting, need not consider how to carry out concrete picture editor's operation, simplified user's operation.
Picture is handled core can also adopt other technologies.As adopt other Flame Image Process storehouse CxImage, and perhaps based on BMP, JPEG, the standard of image files such as GIF, form carry out independent development.
Step 135,140,145,150: judge whether successful above-mentioned picture is handled.If success then is set to newly-generated picture file path in the file selection box among the IE, prompting is handled successfully, and closes the page at control place.Otherwise, then download the OCX control automatically and prompting processing failure then, the page of closing the control place be installed.
Wherein, picture is handled the mode that can take safety certification:
Use digital signature identification, can guarantee that the control of downloading is not distorted.Concerning the user, digital signature has strengthened user's the confidence to software security.Will carry out digital signature to software, only need to buy digital certificate (digital certificate of generally selecting the Verisign of internal authority security firm to be issued), and use the digital signature instrument, the file that needs are signed carries out signature operation and gets final product.
Wherein, the installation and upgrade of picture processing can be taked following mode:
Because IE kernel browser, perhaps non-IE kernel but support the browser of ActiveX can be supported automatic download, installation, operation and the upgrading of cab bag.So, ActiveX control and dependence file thereof are packaged into the Cab compressed package, then the cab bag is carried out digital signature, be kept in the WEB server corresponding virtual catalogue.Write a Html web page files then, write the Html code that cab is quoted therein, when the user browsed this web page files, can install and move after the affirmation automatically at the interface of IE kernel browser meeting automatically displaying number signature and prompting user installation.
If control had been installed, then IE can directly move this control in webpage, does not need to download and install again.
If desired control is upgraded, only need the specification the cab APMB package quoted according to Html,, and the version number that cab bag and webpage are quoted code upgraded, can point out automatically and reinstall version number's upgrading of OCX control file.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of image processing method that embeds the WEB browser can be applicable to e-commerce website, it is characterized in that, when the user needs uploading pictures, may further comprise the steps:
A. judge whether the user has installed the control that picture is handled;
If b., the interface that then calls described control is selected the picture that need upload and execution in step c; Otherwise, download and install described control automatically, the interface that calls described control is then selected the picture that need upload and execution in step c;
C. according to default picture processing policy and qualifications described picture is handled automatically, and the new picture file path after will handling is filled up in the file selection box in the browser automatically.
2, method according to claim 1 is characterized in that, if user installation the control handled of picture, then step b further comprises: described control is carried out the initialization setting, and the picture processing policy and the qualifications of acquiescence are set.
3, method according to claim 1 and 2 is characterized in that, described picture processing policy can be selected according to the menu of operation interface by the user, also can default setting is good in advance by system.
4, method according to claim 1 is characterized in that, step c further comprises: c1. judges whether successful picture is handled;
If c2., then newly-generated picture file path is set to the file selection box in the browser, and points out and handle successfully, close the page at described control place; Otherwise failure is handled in prompting, and the page of closing described control place.
5, method according to claim 1 is characterized in that, among the step b, described automatic download is also installed described control and specifically be may further comprise the steps:
S1. described control is packaged into compressed package, and it is kept in the WEB server corresponding virtual catalogue;
S2. write the Html web page files, and write the Html code that described compressed package is quoted;
S3. when the user browsed described web page files, IE kernel browser automatically displaying number signature was also pointed out user installation.
6, method according to claim 5 is characterized in that, step S1 also comprises: described compressed package is carried out digital signature.
7, method according to claim 1 is characterized in that, if the user had installed described control, then step b further comprises: directly move described control.
8, method according to claim 5, it is characterized in that, the auto-update flow process of described control specifically comprises: the specification of described compressed package files being quoted according to the Html webpage, the version number of described control file is upgraded, and the version number that described compressed package and Html webpage are quoted code is upgraded.
9, method according to claim 1 is characterized in that, described picture processing policy comprises that quality is preferential, file size is preferential and compression speed is preferential.
10, method according to claim 1 is characterized in that, among the step a, described control adopts the ActiveX technological development, and com interface externally is provided, can be by JavaScript, VBScript script language calling.
CNB2006100607753A 2006-05-18 2006-05-18 Method for processing pictures of embedded WED browser Active CN100428150C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100607753A CN100428150C (en) 2006-05-18 2006-05-18 Method for processing pictures of embedded WED browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100607753A CN100428150C (en) 2006-05-18 2006-05-18 Method for processing pictures of embedded WED browser

Publications (2)

Publication Number Publication Date
CN101075186A CN101075186A (en) 2007-11-21
CN100428150C true CN100428150C (en) 2008-10-22

Family

ID=38976254

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100607753A Active CN100428150C (en) 2006-05-18 2006-05-18 Method for processing pictures of embedded WED browser

Country Status (1)

Country Link
CN (1) CN100428150C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221501B (en) * 2008-01-09 2010-12-15 金蝶软件(中国)有限公司 Method and device for generating document uploading control of browser
CN101567893A (en) * 2009-05-26 2009-10-28 中兴通讯股份有限公司 Method and system for uploading files in WEB application
US8954386B2 (en) * 2011-03-22 2015-02-10 Microsoft Corporation Locally editing a remotely stored image
JP5210466B1 (en) * 2011-06-17 2013-06-12 楽天株式会社 Information processing apparatus, information processing method, information processing program, and recording medium on which information processing program is recorded
CN104216696B (en) * 2013-06-05 2017-08-25 北京齐尔布莱特科技有限公司 A kind of thumbnail Component
CN103581486A (en) * 2013-10-09 2014-02-12 苏州网信信息科技有限公司 Web-based online scanning method
CN104714992A (en) * 2013-12-12 2015-06-17 南宁市磁汇科技有限公司 One-click processing method and device for dynamically inserting local file to WEB page
CN103761241B (en) * 2013-12-13 2019-02-05 北京奇虎科技有限公司 A kind of method for uploading and browser of image data
CN105630268A (en) * 2014-10-29 2016-06-01 腾讯科技(深圳)有限公司 Method and device for uploading files in network
CN105204850B (en) * 2015-08-31 2019-05-17 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN106020994A (en) * 2016-05-06 2016-10-12 福建创意嘉和软件有限公司 A script and interface interworking method and device
CN106850563B (en) * 2016-12-28 2020-11-24 百富计算机技术(深圳)有限公司 Method and device for accessing payment terminal
CN110175305B (en) * 2019-05-05 2022-03-11 中国银行股份有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110704785A (en) * 2019-10-11 2020-01-17 胥万福 Data processing method for rapidly opening pictures in webpage through Photoshop

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143649A1 (en) * 2001-03-29 2002-10-03 Wise Nathan Charles Method of distributing photographs online through a hierarchy
WO2004100042A2 (en) * 2003-05-02 2004-11-18 Icu Software, Inc. Sharing photos electronically

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143649A1 (en) * 2001-03-29 2002-10-03 Wise Nathan Charles Method of distributing photographs online through a hierarchy
WO2004100042A2 (en) * 2003-05-02 2004-11-18 Icu Software, Inc. Sharing photos electronically

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于ASP.NET和Oracle数据库的图片上传和查看. 颜波,孙宏波,杨融菲,肖田元.计算机工程,第31卷第24期. 2005
基于ASP.NET和Oracle数据库的图片上传和查看. 颜波,孙宏波,杨融菲,肖田元.计算机工程,第31卷第24期. 2005 *
基于PHP的网络图片管理. 王昊.现代图书情报技术,第2004卷第5期. 2004
基于PHP的网络图片管理. 王昊.现代图书情报技术,第2004卷第5期. 2004 *

Also Published As

Publication number Publication date
CN101075186A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN100428150C (en) Method for processing pictures of embedded WED browser
US7234107B1 (en) System for customizing web page
CN109324768B (en) Method and system for binding user account with image forming device through mobile terminal
CN104765617B (en) Based on the HTML5 stream application functional interface distribution method realized and system
JP4865983B2 (en) Network server
CN103246489B (en) Print system, printing server and control method
US9241030B2 (en) Scanner web service for web application and scanner driver communication
CN102200976B (en) Customizing system and method for converting desktop application into network application
CN109710902A (en) Generation method, device, equipment and the computer readable storage medium of PDF document
CN106155993B (en) Image forming apparatus
CN104981800A (en) Delivery and display of page previews during page retrieval events
US10298986B2 (en) Method and apparatus for incorporating web based selection into graphics system
CN102682093A (en) Web page sectionally-loading method and web page sectionally-loading system for mobile browser
US20110225520A1 (en) Website browsing system and server
CN102622395B (en) Method, server and client for assisting in accessing to webpage by application virtualization
CN104704468A (en) Cross system installation of WEB applications
CN104035937A (en) Extensible system and method for electronic document online browsing
WO2014190717A1 (en) Method and device of displaying images in text information
CN104601522A (en) Method, device and system for realizing interaction between mobile client and service system
CN106155735B (en) Image forming apparatus
CN102831154B (en) The method and apparatus of data in the Text Entry of preservation and display web page
CN104219295A (en) Server-side configuration based information display method and system for mobile equipment
TWI221222B (en) Network relay method, user interface providing method, proxy server device and client device and recording media
CN106095598A (en) A kind of data processing method and client
KR101208640B1 (en) Information display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant