JP2014052960A - Image processing apparatus and program - Google Patents
Image processing apparatus and program Download PDFInfo
- Publication number
- JP2014052960A JP2014052960A JP2012198565A JP2012198565A JP2014052960A JP 2014052960 A JP2014052960 A JP 2014052960A JP 2012198565 A JP2012198565 A JP 2012198565A JP 2012198565 A JP2012198565 A JP 2012198565A JP 2014052960 A JP2014052960 A JP 2014052960A
- Authority
- JP
- Japan
- Prior art keywords
- image
- images
- processing apparatus
- image processing
- predetermined number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
【課題】CSSスプライト画像を用いる場合の画像の表示時間を短縮する。
【解決手段】Webブラウザに操作画面のWebページを提供可能な画像形成装置であって、Webページの表示対象となる複数の画像を記憶する記憶手段と、所定の条件に基づいて、複数の画像の中から所定数の画像を決定する決定手段と、所定数の画像をまとめて1つの画像を生成する生成手段と、1つの画像を前記Webブラウザに配信する配信手段と、を備える。
【選択図】図3An image display time when a CSS sprite image is used is shortened.
An image forming apparatus capable of providing a Web page of an operation screen to a Web browser, the storage unit storing a plurality of images to be displayed on the Web page, and a plurality of images based on a predetermined condition Determination means for determining a predetermined number of images, generation means for generating a single image by combining the predetermined number of images, and distribution means for distributing one image to the Web browser.
[Selection] Figure 3
Description
本発明は、画像処理装置及びプログラムに関する。 The present invention relates to an image processing apparatus and a program.
PC(Personal Computer)上で動作するWebブラウザは、一般的に画像データをサーバから取得する。Webブラウザは、画像データを取得する際にhttpリクエストを使用する。また、画像データをまとめて取得するCSS(Cascading Style Sheets)スプライトという技術が知られている。これにより、画像のロード回数が削減でき、Webページの画像表示を速くすることができる。 A Web browser operating on a PC (Personal Computer) generally acquires image data from a server. The Web browser uses an http request when acquiring image data. Also, a technique called CSS (Cascading Style Sheets) sprite that collects image data collectively is known. As a result, the number of times the image is loaded can be reduced, and the image display of the Web page can be accelerated.
しかし、CSSスプライトでは、Webページで使用する画像全てをCSSスプライト画像に含めるため、CSSスプライト画像自体のサイズが大きくなってしまう。画像サイズの増大に対し、CSSスプライト画像の矩形画像の表示面積を小さくし、CSSスプライト画像の通信速度を速くする技術がある(例えば、特許文献1参照)。 However, in CSS sprites, all the images used on the Web page are included in the CSS sprite image, so the size of the CSS sprite image itself becomes large. There is a technique for reducing the display area of a rectangular image of a CSS sprite image and increasing the communication speed of the CSS sprite image as the image size increases (see, for example, Patent Document 1).
しかしながら、従来技術は、Webページで表示される画像を全てCSSスプライト画像に含めることに変わりなく、画像を表示するまでの時間がかかるという問題点があった。 However, the conventional technique has a problem in that it takes time until the image is displayed without changing all the images displayed on the Web page into the CSS sprite image.
そこで、本発明は、CSSスプライト画像を用いる場合の画像の表示時間を短縮することができる画像処理装置及びプログラムを提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus and a program that can shorten the display time of an image when a CSS sprite image is used.
本発明の一態様の画像処理装置は、Webブラウザに操作画面のWebページを提供可能な画像形成装置であって、前記Webページの表示対象となる複数の画像を記憶する記憶手段と、所定の条件に基づいて、前記複数の画像の中から所定数の画像を決定する決定手段と、前記所定数の画像をまとめて1つの画像を生成する生成手段と、前記1つの画像を前記Webブラウザに配信する配信手段と、を備える。 An image processing apparatus according to an aspect of the present invention is an image forming apparatus capable of providing a Web page of an operation screen to a Web browser, and stores a plurality of images to be displayed on the Web page; Based on a condition, a determination unit that determines a predetermined number of images from the plurality of images, a generation unit that generates a single image by combining the predetermined number of images, and the one image to the Web browser Distribution means for distributing.
本発明によれば、CSSスプライト画像を用いる場合の画像の表示時間を短縮することができる。 ADVANTAGE OF THE INVENTION According to this invention, the display time of the image in the case of using a CSS sprite image can be shortened.
以下、本発明の実施例を図面に基づいて説明する。画像処理装置の一例として複合機(MFP:Multifunction Peripheral)を用いて説明するが、Webサーバ機能を有する装置であればよい。 Embodiments of the present invention will be described below with reference to the drawings. Although an example of an image processing apparatus will be described using a multifunction peripheral (MFP), any apparatus having a Web server function may be used.
[実施例]
<システム>
図1は、実施例における画像処理システム1の一例を示す図である。図1に示す画像処理システム1は、画像処理装置(例えばMFP)10、情報処理装置(PC:Personal Computer)20等がネットワークを介して接続される。ネットワークに接続される画像処理装置や情報処理装置の数は、図1に示す例に限られない。
[Example]
<System>
FIG. 1 is a diagram illustrating an example of an
情報処理装置20は、Webブラウザを搭載し、このWebブラウザを用いて、画像処理装置10にWebページを要求するhttpリクエストを送信する。情報処理装置20は、Webページを取得するとWebブラウザを用いて表示部に表示する。
The
画像処理装置10は、Webサーバとしての機能を有し、情報処理装置20のWebブラウザからhttpリクエストを受け付ける。画像処理装置10は、受け付けたリクエストで指定されたWebページに必要なHTML(HyperText Markup Language)ファイルや画像ファイルを画像処理装置10に配信する。画像ファイルは、例えばCSSスプライト画像である。画像処理装置10は、以下、画像処理装置10について主に説明する。
The
<ハードウェア>
次に、画像処理装置10のハードウェア構成について説明する。図2は、実施例における画像処理装置10のハードウェア構成の一例を示すブロック図である。図2に示す例では、画像処理装置10は、CPU(Central Processing Unit)102、SDRAM(Synchronous DRAM)111、SRAM(Static Random Access Memory)112、フラッシュメモリ(フラッシュROM)110、ICカードインタフェース部130およびHDD103などをASIC101に接続したコントローラボード100と、オペレーションパネル150と、ファックスコントロールユニット(FCU)160と、USB170と、IEEE1394 180と、ハードウェア190(例えばプリンタなど)とを含む。
<Hardware>
Next, the hardware configuration of the
オペレーションパネル150は、ASIC(Application Specific Integrated Circuit)101に直接接続され、FCU160、USB170、IEEE1394 180およびハードウェア190はPCIバスを介してASIC101に接続されている。
The
ICカードインタフェース部130は、ICカード140を挿入して、ICカード140とデータのやりとりを行うインタフェースである。ICカード140は、インストール記憶媒体として使用することもでき、この場合には開発された外部アプリをICカード140に格納する。
The IC
CPU102は、SDRAM111などにロードされたプログラムを処理することにより、各機能を実現する。HDD103には、プログラムやプログラムが利用する各種のデータ等が記憶される。SDRAM111やSRAM112には、各種の設定情報等が記憶される。
The
オペレーションパネル150は、ユーザからの入力の受け付けを行うためのボタン等の入力手段や、液晶パネル等の表示手段等を備えたハードウェアである。オペレーションパネル150は、Webブラウザ機能により、Webページを表示する。
The
<機能>
次に、画像処理装置10の機能的構成について説明する。図3は、実施例における画像処理装置10の構成の一例を示すブロック図である。図3に示す例では、情報処理装置20は、画像処理装置10とネットワークを介して接続されており、Webブラウザ250を搭載し、Webサーバ310に対して操作画面の表示を要求したりする。
<Function>
Next, a functional configuration of the
図3に示すWebブラウザ250は、Webページを表示する際、httpリクエストにより画像の取得を要求する。Webブラウザ250は、リクエストの応答で取得したHTMLファイルや画像ファイルによりWebページを表示する。
When the
画像処理装置10は、Webサーバ310、コピーアプリ(以下、アプリケーションを単にアプリとも称す)321、FAXアプリ322、スキャナアプリ323、ROM331、不揮発RAM332、及びRAM333を備える。
The
また、画像処理装置10は、システム管理部341、メモリ管理部342、エンジン管理部343、ユーザ管理部344、送信管理部345、操作パネル350、プロッタオプション361、スキャナオプション362、及びFAXボード363を備える。
The
オプションとは、画像処理装置10に装着可能(あるいは取り外し可能)な外部装置である。実施例では、印刷後の仕分け・パンチ・ステープルを行う「フィニッシャー」、電話回線を通してFAX通信を行う「FAX通信ボード」をオプションの例として挙げている。
The option is an external device that can be attached to (or removed from) the
Webサーバ(Webサービス提供手段)310は、インターネットに接続された各装置に対してWebサーバ(httpサーバ)として動作し、情報処理装置20上で動作するWebブラウザ250にアプリケーションの操作画面を表示する。
The Web server (Web service providing means) 310 operates as a Web server (http server) for each device connected to the Internet, and displays an application operation screen on the
Webサーバ210は、リクエスト受付・配信手段311、HTML生成手段312、決定手段313、画像生成手段314、及び集計手段315を有する。
The Web server 210 includes a request reception /
リクエスト受付・配信手段311は、Webブラウザ250からのリクエストを受け付け、URL(Uniform Resource Locator)に応じて必要なHTMLファイルや画像ファイルをRAM333から取得する。
The request reception /
リクエスト受付・配信手段311は、リクエストの応答として、HTMLファイルや画像ファイルをWebブラウザ250に配信する。
The request reception /
HTML生成手段312は、Webブラウザ250に提供するHTMLファイルを生成する。HTMLファイルは、図6を用いて後述する。
The
決定手段313は、所定の条件に基づいて、ROM331に記憶されたWebページの表示対象となる複数の画像の中から所定数の画像を決定する。例えば、決定手段313は、画像生成手段314により生成されるCSSスプライト画像にどの画像を含めるかを決定する。所定の条件は、幾つかの例を挙げて後述する。
The
また、決定手段313は、オプションが装着された場合などに、所定数の画像の再決定を行う。決定手段313は、再決定を行った場合には、その旨を画像生成手段314に通知する。
The
画像生成手段314は、決定手段313により決定された所定数の画像をまとめて、1つの画像を生成する。画像生成手段314は、例えば、決定手段313により決定された所定数の画像を合成してCSSスプライト画像を生成する。
The
画像生成手段314は、決定手段313により再決定が行われた場合、再決定後の所定数の画像から1つの画像を生成する。
When the re-determination is performed by the
集計手段315は、Webページ毎に、Webブラウザ250への提供回数を集計する。集計手段315は、ユーザ毎に集計してもよい。集計手段315は、集計した回数を決定手段313に通知する。
The
コピーアプリ321は、画像処理装置10に搭載されているアプリケーションであり、アプリケーションが持つ機能のジョブを実行する。
The
FAXアプリ322は、画像処理装置10に搭載されるアプリケーションであり、アプリケーションが持つ機能のジョブを実行する。
The
スキャナアプリ323は、画像処理装置10に搭載されているアプリケーションであり、アプリケーションが持つ機能のジョブ実行をする。
The
ROM331は、ユーザによって変更されないデータを保持する。ROM331は、例えば、CSSスプライト画像の元となる元データ(画像データ)、及び各CSSスプライト画像情報などを記憶する。ROM331は、つまり、Webページの表示対象となる複数の画像を記憶する。
The
不揮発RAM332は、ユーザによって変更され、電源を切ってもデータを記憶する。不揮発RAM332は、例えば、後述する機能制限情報、集計情報を記憶する。
The
RAM333は、ユーザによって変更され、電源を切ったときに記憶する必要がないデータを記憶する。RAM333は、例えば、生成されたCSSスプライト画像や、HTMLファイルを記憶する。RAM333は、装置動作中に一時的に値を保持するのにも用いられる。
The
システム管理部341は、システム全体の状態管理をする。メモリ管理部342は、メモリ管理やスキャンしたファイルデータ作成を行う。
The
エンジン管理部343は、原稿の読み取りと印刷の制御を行う。エンジン管理部343は、検出手段371を有する。検出手段371は、オプションとしての外部装置が装着されたことを検出する。検出手段371は、オプションの装着を検出すると、オプション装着の旨を決定手段313に通知する。また、検出手段371は、装着されるオプションの変更も検出する。
The
ユーザ管理部344は、ユーザ認証やスキャナ送信先の管理を行う。ユーザ管理部344は、画像処理装置10を使用するユーザをユーザ認証などで特定するユーザ管理手段としても機能する。
A
送信管理部345は、FAX送信やスキャン送信の管理を行う。送信管理部345は、検出手段372を有する。検出手段372は、オプションとしてのFAX通信ボード363の装着を検出する。検出手段372は、FAX通信ボード363の装着を検出すると、オプション装着の旨を決定手段313に通知する。
The
操作パネル350は、画像処理装置10に装着される操作パネルである。操作パネル350は、画面を表示するためのLCD(Liquid Crystal Display)、状態を示すためのLED(Light Emitting Diode)およびブザー、ユーザからの入力のためのいくつかのボタン(ハードキーと呼ぶ)、を備える。
The
プロッタオプション361は、印刷に関するオプションである。プロッタオプション361は、例えば、印刷後の仕分け、パンチ、ステープルを行う「フィニッシャー」などである。
The
スキャナオプション362は、読み取りに関するオプションである。スキャナオプション362は、例えば、複数原稿を自動で給紙する「自動原稿送り装置」などである。FAX通信ボード363は、電話回線を通してFAX通信を行うオプションである。
The
なお、画像処理装置10のプロッタオプション361、スキャナオプション362及びFAX通信ボード363は、図2のハードウェア190に対応し、操作パネル350は、オペレーションパネル150に対応する。また、ROM331は、例えばHDD103やフラッシュメモリ110に対応する。
The
不揮発RAM332は、例えばSRAM112に対応し、RAM333は、例えばSDRAM111に対応する。その他の各手段、各アプリ、及び各部は、例えばCPU102又はASIC101などにより実現されうる。
The
<CSSスプライト画像を用いた表示例>
図4は、CSSスプライト画像の一例を示す図である。図4に示す例では、画像生成手段314は、ROM331から6つのMFPの画像を取得し、これらの画像を合成して1つの画像(CSSスプライト画像)を生成する。
<Display example using CSS sprite image>
FIG. 4 is a diagram illustrating an example of a CSS sprite image. In the example illustrated in FIG. 4, the
図5は、HTMLファイルの一例を示す図である。図5に示す例では、HTML生成手段312は、スタイルシート(CSS)定義にて、クラス名img1〜img6に対し、CSSスプライト画像「mfp.jpg」のうち指定の領域を表示するように定義している。
FIG. 5 is a diagram illustrating an example of an HTML file. In the example shown in FIG. 5, the
例えば、img5は、「mfp.jpg」の幅方向に402ピクセル目から131ピクセル分表示するように定義されている。HTMLファイルのbody部にて、クラス名img1〜img6が指定されると、CSSスプライト画像「mfp.jpg」の一部が表示される。 For example, img5 is defined to display 131 pixels from the 402th pixel in the width direction of “mfp.jpg”. When class names img1 to img6 are specified in the body part of the HTML file, a part of the CSS sprite image “mfp.jpg” is displayed.
図6は、Webページに表示されるイメージ例を示す図である。図6に示す例では、「フィニッシャーカバーが開いています」という文字列の下に、「img5」を表示する。このとき、画像ファイルは「mfp.jpg」1つだけなので、一度「mfp.jpg」を情報処理装置10がロードすれば、画像ファイルを再度ロードする必要はない。
FIG. 6 is a diagram illustrating an example of an image displayed on the Web page. In the example shown in FIG. 6, “img5” is displayed below the character string “Finisher cover is open”. At this time, since there is only one “mfp.jpg”, once the
<条件に応じたCSSスプライト画像の生成>
次に、条件に応じたスプライト画像の生成について説明する。まず、オプションに関する条件に基づいてスプライト画像を生成する例について説明する。
<Generation of CSS sprite image according to conditions>
Next, generation of a sprite image according to conditions will be described. First, an example in which a sprite image is generated based on conditions regarding options will be described.
(条件1)
条件1は、オプション構成に関する条件である。例えば、決定手段313は、所定のオプションが装着されているか否かで、CSSスプライト画像に含める画像の内容を変える。
(Condition 1)
図7は、CSSスプライト画像情報1の一例を示す図である。図7に示すCSSスプライト画像情報1は、例えばROM331に記憶される。CSSスプライト画像情報1は、例えば、CSSスプライト画像を生成するための情報、CSSスプライト画像から各画像を表示するための情報を含む。
FIG. 7 is a diagram illustrating an example of the CSS
図7に示すCSSスプライト画像情報1は、以下の情報を含む。
(1)元画像:CSSスプライト画像を構成する元の画像のファイル名
(2)CSSスプライト画像生成条件:各元画像に対しCSSスプライト画像が必要となるオプション構成条件
(3)CSSスプライト画像ファイル名
(4)CSSスプライト画像上の開始x座標、開始y座標、幅、高さ
(2)に関し、例えば画像「a0.jpg」の生成条件は、「フィニッシャー無し」となっている。これは、「フィニッシャー無し」の時に画像「a0.jpg」を含むCSSスプライト画像を生成する必要があることを示す。逆に、「フィニッシャー有り」の時には、画像「a0.jpg」を含むCSSスプライト画像は生成されない。
The CSS
(1) Original image: file name of original image constituting CSS sprite image (2) CSS sprite image generation condition: optional composition condition that requires CSS sprite image for each original image (3) CSS sprite image file name (4) Start x-coordinate, start y-coordinate, width, height on CSS sprite image Regarding (2), for example, the generation condition of the image “a0.jpg” is “no finisher”. This indicates that it is necessary to generate a CSS sprite image including the image “a0.jpg” when “no finisher” is set. On the other hand, when “Finisher is present”, the CSS sprite image including the image “a0.jpg” is not generated.
決定手段313は、オプションの装着によりWebページに表示可能となる画像を含む所定数の画像を決定する。つまり、決定手段313は、各検出手段により検出されたオプション構成(ここではフィニッシャー無し/有り)から、図7に示す情報のうち(2)の条件に合致する元画像を決定する。
The
画像生成手段314は、決定手段313により決定された元画像に基づいて図7に示す情報のうち(3)(4)の情報に従い、CSSスプライト画像を生成する。
The
例えば、オプション構成が「フィニッシャー無し」の場合、決定手段313は、画像「a0.jpg」「a1.jpg」をCSSスプライト画像に含める画像として決定する。画像「a0.jpg」「a1.jpg」を含むCSSスプライト画像のファイル名は、ともに「mfp1.jpg」である。
For example, when the optional configuration is “no finisher”, the
よって、画像生成手段314は、画像「a0.jpg」「a1.jpg」に対するCSSスプライト画像を(4)の座標・幅・高さに従って合成して、画像ファイル「mfp1.jpg」を生成する。
Therefore, the
図8は、フィニッシャー未装着時のCSSスプライト画像の一例を示す図である。図8に示すように、フィニッシャー未装着時には、図7に示す画像「a0.jpg」「a1.jpg」が合成された画像が生成される。 FIG. 8 is a diagram illustrating an example of a CSS sprite image when the finisher is not installed. As shown in FIG. 8, when the finisher is not attached, an image in which the images “a0.jpg” and “a1.jpg” shown in FIG. 7 are combined is generated.
この結果、CSSスプライト画像ファイル「mfp1.jpg」として、図8に示すフィニッシャー未装着時のCSSスプライト画像に示す画像が生成される。図8に示すCSSスプライト画像は、図4に示すCSSスプライト画像に示した画像に比べて、含む画像数が少ない。これは、フィニッシャー有り時に必要な画像が、CSSスプライト画像に含まれていないからである。これにより、ファイル容量も小さく、画像ファイルロード時間も短くなる。CSSスプライト画像の生成タイミングは、例えば、装置起動時や、定期的などである。 As a result, as the CSS sprite image file “mfp1.jpg”, an image shown in the CSS sprite image when the finisher is not installed shown in FIG. 8 is generated. The CSS sprite image shown in FIG. 8 includes fewer images than the image shown in the CSS sprite image shown in FIG. This is because an image required when the finisher is present is not included in the CSS sprite image. This reduces the file capacity and shortens the image file loading time. The CSS sprite image generation timing is, for example, when the apparatus is activated or periodically.
また、画像処理装置10の起動後に、オプション構成が変更される場合もある。このとき、Webサーバ310は、生成済みのCSSスプライト画像を一旦消去する。この後、検出手段により検出された変更後のオプション構成に従って、決定手段313は、CSSスプライト画像に含める画像を再決定する。
In addition, the option configuration may be changed after the
画像生成手段314は、決定手段313により再決定された画像を用いてCSSスプライト画像を再生成する。
The
例えば、画像処理装置10の起動後に、「フィニッシャー無し」から「フィニッシャー有り」に変更された場合、Webサーバ310は、変更前のCSSスプライト画像「mfp1.jpg」をRAM333から消去する。
For example, when the
画像生成手段314は、図7に示すCSSスプライト画像情報に基づいて、「フィニッシャー有り」時に必要な画像のみを含むCSSスプライト画像「mfp2.jpg」を生成する。
The
図9は、フィニッシャー装着済のCSSスプライト画像の一例を示す図である。図9に示すように、フィニッシャー装着済時には、図7に示す画像「b0.jpg」、「b1.jpg」、「b3.jpg」、「b4.jpg」が合成された画像が生成される。 FIG. 9 is a diagram illustrating an example of a CSS sprite image with the finisher attached. As shown in FIG. 9, when the finisher is installed, an image in which the images “b0.jpg”, “b1.jpg”, “b3.jpg”, and “b4.jpg” shown in FIG. 7 are combined is generated.
これにより、オプション構成が途中で変更になっても、変更後のオプション構成に応じて、画像表示時間を短縮することができる。 Thereby, even if the option configuration is changed in the middle, the image display time can be shortened according to the changed option configuration.
また、画像処理装置10の起動後に、オプション構成が動的に変更されることを想定して、装置起動時に検出されたオプション構成を含む各オプションのパターンに応じて、画像生成手段314は、CSSスプライト画像を生成してもよい。
Further, assuming that the option configuration is dynamically changed after the
例えば、装置起動時には「フィニッシャー無し」であっても、途中で「フィニッシャー有り」に変わることを想定して、決定手段313は、図7に示す(2)の条件が「フィニッシャー無し」「フィニッシャー有り」の両方のCSSスプライト画像を決定する。
For example, assuming that the finisher changes to “with finisher” on the way even when “no finisher” is set when the apparatus is activated, the
画像生成手段314は、決定手段313により決定された「フィニッシャー無し」「フィニッシャー有り」それぞれのCSSスプライト画像を生成する。すなわち、画像生成手段314は、ファイル名「mfp1.jpg」「mfp2.jpg」のCSSスプライト画像を生成しておく。
The
その後、オプションが「フィニッシャー有り」に変化しても、CSSスプライト画像「mfp2.jpg」は生成済みである。よって、オプションが変更された時にCSSスプライト画像を生成するよりも、オプション構成の変更時にCSSスプライト画像の再生成が実行されない分、変更後の表示データをWebブラウザ側に早く提供することができる。 Thereafter, the CSS sprite image “mfp2.jpg” has already been generated even if the option changes to “with finisher”. Therefore, the display data after the change can be provided to the Web browser side faster than the CSS sprite image is generated when the option configuration is changed, because the CSS sprite image is not regenerated when the option is changed.
なお、上記例では「カバーが開いている」という機器の状態をWeb上で表示する例を示したが、この他、Web上での機器の設定をする画面を表示する際の画像表示でも有用である。 In the above example, the device state that “the cover is open” is displayed on the Web, but in addition to this, it is also useful for image display when displaying a screen for setting the device on the Web. It is.
例えば、機器設定の項目として「コピー設定項目」と「FAX設定項目」があり、「FAX設定項目」はオプション「FAX通信ボード」装着時のみ表示可能とする。この場合、「FAX設定項目」のみで表示する画像は、「FAX通信ボード」が無い時はCSSスプライト画像に含む必要がない。そのため、決定手段313は、オプションとしての「FAX通信ボード」の有無によって、CSSスプライト画像に「FAX設定項目のみで表示する画像」を含むか含まないかを決定すればよい。
For example, there are “copy setting item” and “FAX setting item” as device setting items, and “FAX setting item” can be displayed only when the option “FAX communication board” is installed. In this case, an image displayed only by “FAX setting item” need not be included in the CSS sprite image when there is no “FAX communication board”. Therefore, the
(条件2)
条件2は、ユーザ毎の機能制限に関する条件である。例えば、決定手段313は、画像処理装置10を使用するユーザの機能制限によって、CSSスプライト画像に含める画像の内容を変える。
(Condition 2)
図10は、機能制限情報の一例を示す図である。図10に示す機能制限情報は、例えば、不揮発RAM332に記憶される。図10に示す例では、ユーザAは、コピー・FAX・スキャナとも使用可、ユーザBは、コピー・スキャナが使用可(FAXは使用不可)、ユーザCは、コピーのみ使用可(FAX・スキャナは使用不可)となっている。
FIG. 10 is a diagram illustrating an example of the function restriction information. The function restriction information illustrated in FIG. 10 is stored in the
図11は、CSSスプライト画像情報2の一例を示す図である。図11に示すCSSスプライト画像情報2は、各元画像に対し、CSSスプライト画像生成条件として、どの機能が使用可能時に使用される画像かを示す。なお、図11に示すCSSスプライト画像情報2では、図7に示す(3)(4)の情報を省略している。
FIG. 11 is a diagram illustrating an example of the CSS
決定手段313は、ユーザ管理部344で特定されたユーザ毎に、使用できる機能を機能制限情報に基づいて特定し、特定された機能のWebページに含まれる画像を含む所定数の画像を決定する。
The determining
例えば、決定手段313は、ユーザAはコピー・FAX・スキャナとも使用可能なので、ユーザA用として、画像「c0.jpg」、「c1.jpg」、「f0.jpg」、「f1.jpg」、「s0.jpg」、「s1.jpg」を含むように決定する。
For example, since the user A can use both a copy, a FAX, and a scanner, the
決定手段313は、ユーザBはコピー・スキャナが使用可能なので、ユーザB用として、画像「c0.jpg」、「c1.jpg」、「s0.jpg」、「s1.jpg」を含むように決定する。決定手段313は、同様に、ユーザC用として、画像「c0.jpg」、「c1.jpg」を含むように決定する。
Since the user B can use the copy scanner, the
画像生成手段314は、決定手段313により決定されたユーザ毎の画像をまとめて、ユーザ毎にCSSスプライト画像を生成する。これにより、ユーザ毎の機能制限に対応して、画像表示時間を短縮することができる。
The
また、画像処理装置10の起動後に、機能制限情報の使用可否情報を変更する場合もある。このとき、Webサーバ310は、生成済みのCSSスプライト画像を一旦消去する。この後、変更された機能制限情報に従って、決定手段313は、CSSスプライト画像に含める画像を再決定する。
In addition, after the
画像生成手段314は、決定手段313により再決定された画像を用いてCSSスプライト画像を再生成する。
The
これにより、画像処理装置10を使用しているユーザに対する機能制限の設定が変更しても、変更後の機能制限情報に基づいて画像表示時間を短縮することができる。
Thereby, even if the function restriction setting for the user who uses the
また、決定手段313は、機能制限情報の使用可否の各パターンに応じてCSSスプライト画像に含める画像を予め決定してもよい。例えば、決定手段313は、図11に示すCSSスプライト画像情報2から、各機能の使用可否の全パターンに対してCSSスプライト画像に含める画像を決定する。
Further, the determining
図12は、各パターンに対する画像情報の一例を示す図である。図12に示す情報は、例えば不揮発RAM332に記憶される。図12に示す情報は、図11に示すCSSスプライト画像情報2から各機能の使用可/不可のパターンを整理した情報である。
FIG. 12 is a diagram illustrating an example of image information for each pattern. The information shown in FIG. 12 is stored in the
決定手段313は、図12に示す情報を参照し、パターン毎に、CSSスプライト画像に含める画像を予め(例えば装置起動時)決定しておく。画像生成手段314は、決定手段313により決定された各パターンの画像を用いてCSSスプライト画像を生成する。
The determining
これにより、ユーザがどのような機能制限設定になっていても、その機能制限設定に対応するCSSスプライト画像が用意されているので、起動中にユーザの機能制限設定が変更されても、CSSスプライト画像を再生成する必要がない。 As a result, a CSS sprite image corresponding to the function restriction setting is prepared regardless of the function restriction setting for the user. Therefore, even if the user's function restriction setting is changed during activation, the CSS sprite is changed. There is no need to regenerate the image.
(条件3)
条件3は、Webページ毎のWebブラウザへの提供回数に関する条件である。例えば、決定手段313は、Webページの表示回数によって、CSSスプライト画像に含める画像の内容を変える。提供回数は、表示回数などでもよい。
(Condition 3)
図13は、CSSスプライト画像情報3の一例を示す図である。図13に示すCSSスプライト画像情報3は、例えばROM331に記憶される。図13に示すCSSスプライト画像情報3は、各画像に対し、どのWebページで使用しているかを示す。なお、図13に示すCSSスプライト画像情報3では、図7に示す(3)(4)の情報を省略している。
FIG. 13 is a diagram illustrating an example of the CSS
集計手段315は、ユーザ毎に、Webブラウザ250に表示した、又は提供したページの回数を集計する。決定手段313は、特定のタイミング(装置起動時や、1週間毎など)で、その集計結果を元に、表示回数又は提供回数が所定値以上となる画面で使用する画像をユーザ毎に決定する。
The totaling
画像生成手段314は、決定手段313により決定された画像を用いてCSSスプライト画像をユーザ毎に生成する。
The
図14は、集計情報の一例を示す図である。図14に示す集計情報は、例えば不揮発RAM332に記憶される。図14に示す集計情報は、ユーザ毎の、各ページの表示回数を示す。
FIG. 14 is a diagram illustrating an example of total information. The total information illustrated in FIG. 14 is stored in, for example, the
図14に示す例では、決定手段313は、ユーザAはページ1、2の頻度が所定値以上であるので、ページ1、2で使用される画像「i1.jpg」、「i2.jpg」、「i3.jpg」、「i4.jpg」を、CSSスプライト画像用の画像に決定する。
In the example shown in FIG. 14, since the frequency of
また、決定手段313は、ユーザBはページ1の頻度が所定値以上であるので、ページ1で使用される画像「i1.jpg」、「i2.jpg」、「i3.jpg」を、CSSスプライト画像用の画像に決定する。
Further, since the frequency of
また、決定手段313は、ユーザCはページ3の頻度が所定値以上であるので、ページ3で使用される画像「i5.jpg」、「i6.jpg」を、CSSスプライト画像用の画像に決定する。決定手段313は、頻度の判定について、回数が適度な閾値(例えば100)以上であるか否かで判断すればよい。
In addition, since the frequency of
なお、集計手段315は、ユーザ毎に集計しない場合は、ページ表示回数を装置全体で集計する。決定手段313は、その集計結果から各ユーザ共通のCSSスプライト画像用の画像を決定する、画像生成手段314は、各ユーザ共通のCSSスプライト画像を生成すればよい。
Note that the
これにより、表示頻度又は提供頻度が所定値以上のページは、そのページで使用される画像がCSSスプライト画像に含まれるので、画像のロードが速くなる。また、CSSスプライト画像は、表示頻度又は提供が所定値未満のページでしか使用されない画像は含まないので、CSSスプライト画像の容量も抑えることができる。 As a result, for a page whose display frequency or provision frequency is equal to or higher than a predetermined value, the image used on the page is included in the CSS sprite image, so the loading of the image is accelerated. In addition, since the CSS sprite image does not include an image that is used only on a page whose display frequency or provision is less than a predetermined value, the capacity of the CSS sprite image can be suppressed.
<動作>
次に、実施例の画像処理装置10の動作について説明する。図15は、CSSスプライト画像の生成処理の一例を示すフローチャートである。図15に示すステップS101で、Webサーバ310は、CSSスプライト画像の生成タイミングであるか否かを判定する。例えば、Webサーバ310は、装置起動時か否かを判定する。また、Webサーバ310は、オプションの変更や、機能制限情報の変更や、一週間毎などの所定間隔を生成タイミングとしてもよい。
<Operation>
Next, the operation of the
生成タイミングであれば(ステップS101−YES)ステップS102に進み、生成タイミングでなければ(ステップS101−NO)ステップS101に戻る。 If it is generation timing (step S101-YES), it will progress to step S102, and if it is not generation timing (step S101-NO), it will return to step S101.
ステップS102で、決定手段313は、Webページで表示対象とする画像の中から、所定の条件を満たす画像を選択し、決定する。
In step S102, the
ステップS103で、画像生成手段314は、決定手段313により決定された画像を用いてCSSスプライト画像を生成する。画像生成手段314は、決定手段313により決定された画像のグループが複数ある場合は、複数のCSSスプライト画像を生成してもよい。
In step S103, the
これにより、Webページで使用される全ての画像をCSSスプライト画像に含めないので、CSSスプライト画像を用いる場合の画像の表示時間を短縮することができる。 As a result, not all images used in the Web page are included in the CSS sprite image, so that it is possible to shorten the image display time when using the CSS sprite image.
図16は、CSSスプライト画像の表示処理の一例を示すシーケンス図である。図16は、Webブラウザ250は、画像処理装置10のWebサーバ310に対し、httpリクエストで、操作画面のWebページの取得を要求する。例えば、取得対象のURLを示す情報が、httpリクエストに含まれる。
FIG. 16 is a sequence diagram illustrating an example of a CSS sprite image display process. In FIG. 16, the
ステップS202で、Webサーバ310(リクエスト受付・配信手段311)は、httpリクエストで指定されたページの取得要求を受け付ける。Webサーバ310は、要求されたWebページのURLで使用する画像のCSSスプライト画像のファイルと、HTMLファイルとをRAM333から取得する。Webサーバ310(リクエスト受付・配信手段311)は、取得したHTMLファイル、CSSスプライト画像ファイルをWebブラウザ25に配信する。
In step S202, the Web server 310 (request reception / distribution means 311) receives an acquisition request for the page specified by the http request. The
ステップS203で、Webブラウザ250は、取得したCSSスプライト画像ファイルとHTMLファイルとを用いてWebページを表示するよう制御する。
In step S203, the
以上、実施例によれば、CSSスプライト画像のサイズを従来よりも小さくすることができるので、CSSスプライト画像を用いる場合の画像の表示時間を短縮することができる。 As described above, according to the embodiment, the size of the CSS sprite image can be made smaller than before, so that the display time of the image when using the CSS sprite image can be shortened.
なお、Webブラウザは、情報処理装置20のWebブラウザ250を用いて説明したが、画像処理装置10内のWebブラウザでもよい。
The Web browser has been described using the
なお、実施例の画像処理装置で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録されて提供される。 The program executed by the image processing apparatus according to the embodiment is a file in an installable format or an executable format, and is a computer such as a CD-ROM, a flexible disk (FD), a CD-R, or a DVD (Digital Versatile Disk). Recorded on a readable recording medium.
また、実施例の画像処理装置で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、実施例の画像処理装置や各情報処理装置で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成してもよい。 The program executed by the image processing apparatus according to the embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the image processing apparatus according to the embodiment and the program executed by each information processing apparatus may be provided or distributed via a network such as the Internet.
また、実施例の画像処理装置で実行されるプログラムを、ROM等に予め組み込んで提供するように構成してもよい。 The program executed by the image processing apparatus according to the embodiment may be configured to be provided by being incorporated in advance in a ROM or the like.
実施例の画像処理装置で実行されるプログラムは、前述した各部や各手段を含むモジュール構成となっている。実際のハードウェアとしては、CPUがROMやHDDからプログラムを読み出して実行することにより上記各部や各手段のうち1又は複数の各部や各手段がRAM上にロードされ、1又は複数の各部や各手段がRAM上に生成されるようになっている。 A program executed by the image processing apparatus according to the embodiment has a module configuration including the above-described units and units. As actual hardware, the CPU reads out the program from the ROM or HDD and executes it, so that one or a plurality of each unit or each means among the above-mentioned each unit or each means is loaded on the RAM, and one or a plurality of each unit or each Means are generated on the RAM.
なお、上記の画像処理装置及びプログラムは、上記実施例そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化することができる。また、上記実施例に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成することができる。 The above-described image processing apparatus and program are not limited to the above-described embodiments as they are, but can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the above embodiments.
1 画像処理システム
10 画像処理装置
20 情報処理装置
101 ASIC
102 CPU
103 HDD
110 フラッシュメモリ
111 SDRAM
112 SRAM
150 オペレーションパネル
310 Webサーバ
311 リクエスト受付・配信手段
312 HTML生成手段
313 決定手段
314 画像生成手段
315 集計手段
371、372 検出手段
DESCRIPTION OF
102 CPU
103 HDD
110
112 SRAM
150
Claims (10)
前記Webページの表示対象となる複数の画像を記憶する記憶手段と、
所定の条件に基づいて、前記複数の画像の中から所定数の画像を決定する決定手段と、
前記所定数の画像をまとめて1つの画像を生成する生成手段と、
前記1つの画像を前記Webブラウザに配信する配信手段と、
を備える画像処理装置。 An image forming apparatus capable of providing a web page of an operation screen to a web browser,
Storage means for storing a plurality of images to be displayed on the Web page;
Determining means for determining a predetermined number of images from the plurality of images based on a predetermined condition;
Generating means for collecting the predetermined number of images and generating one image;
Distribution means for distributing the one image to the Web browser;
An image processing apparatus comprising:
前記決定手段は、
前記外部装置の装着により前記Webページに表示可能となる画像を含む前記所定数の画像を決定する請求項1記載の画像処理装置。 A detection means for detecting an external device attached to the image processing apparatus;
The determining means includes
The image processing apparatus according to claim 1, wherein the predetermined number of images including images that can be displayed on the Web page when the external apparatus is attached is determined.
装着される外部装置の変更を検出し、
前記決定手段は、
前記外部装置の変更により所定数の画像を再決定し、
前記生成手段は、
再決定された所定数の画像をまとめて1つの画像を再生成する請求項2記載の画像処理装置。 The detection means includes
Detects changes in the external device installed,
The determining means includes
Re-determining a predetermined number of images by changing the external device,
The generating means includes
The image processing apparatus according to claim 2, wherein the predetermined number of re-determined images are collected to regenerate one image.
前記外部装置の有無のパターンに応じて前記所定数の画像を予め決定し、
前記生成手段は、
前記パターン毎に前記1つの画像を生成する前記1つの画像を配信する請求項2記載の画像処理装置。 The determining means includes
The predetermined number of images is determined in advance according to the pattern of the presence or absence of the external device,
The generating means includes
The image processing apparatus according to claim 2, wherein the one image that generates the one image is distributed for each pattern.
当該画像処理装置を使用するユーザを特定するユーザ管理手段と、をさらに備え、
前記決定手段は、
特定されたユーザ毎に、使用できる機能を前記機能制限情報に基づいて特定し、特定された機能のWebページに含まれる画像を含む前記所定数の画像を決定する請求項1記載の画像処理装置。 Second storage means for storing function restriction information indicating availability of each function of the image processing apparatus for each user;
User management means for identifying a user who uses the image processing apparatus, and
The determining means includes
The image processing apparatus according to claim 1, wherein a function that can be used is specified for each specified user based on the function restriction information, and the predetermined number of images including an image included in a Web page of the specified function is determined. .
前記機能制限情報が変更された場合、変更後の機能制限情報に基づいて所定数の画像を再決定し、
前記生成手段は、
再決定された所定数の画像をまとめて1つの画像を再生成する請求項5記載の画像処理装置。 The determining means includes
When the function restriction information is changed, a predetermined number of images are redetermined based on the changed function restriction information,
The generating means includes
6. The image processing apparatus according to claim 5, wherein a predetermined number of re-determined images are collected to regenerate one image.
前記各機能の使用可否のパターンに応じて前記所定数の画像を予め決定し、
前記生成手段は、
前記パターン毎に前記1つの画像を生成する請求項5記載の画像処理装置。 The determining means includes
The predetermined number of images is determined in advance according to a pattern of availability of each function,
The generating means includes
The image processing apparatus according to claim 5, wherein the one image is generated for each pattern.
前記決定手段は、
前記提供回数が所定値以上となるWebページに含まれる画像を含む前記所定数の画像を決定する請求項1記載の画像処理装置。 Further, for each web page, further comprises a counting means for counting the number of times of provision to the web browser,
The determining means includes
The image processing apparatus according to claim 1, wherein the predetermined number of images including an image included in a Web page in which the provision count is equal to or greater than a predetermined value is determined.
前記集計手段は、
ユーザ毎に、前記提供回数を集計し、
前記決定手段は、
特定されたユーザ毎に、前記提供回数が所定値以上となるWebページに含まれる画像を含む前記所定数の画像を決定する請求項8記載の画像処理装置。 A user management means for identifying a user who uses the image processing apparatus;
The counting means includes
For each user, the number of provisions is totaled,
The determining means includes
The image processing apparatus according to claim 8, wherein for each identified user, the predetermined number of images including an image included in a Web page in which the provision count is equal to or greater than a predetermined value is determined.
記憶手段に記憶される前記Webページの表示対象となる複数の画像の中から、所定の条件に基づいて所定数の画像を決定する決定ステップと、
前記所定数の画像をまとめて1つの画像を生成する生成ステップと、
前記1つの画像を前記Webブラウザに配信する配信ステップと、
を前記コンピュータに実行させるプログラム。 A program executed on a computer capable of providing a web page of an operation screen to a web browser,
A determining step of determining a predetermined number of images based on a predetermined condition from a plurality of images to be displayed on the Web page stored in a storage unit;
A generating step of generating a single image by combining the predetermined number of images;
A distribution step of distributing the one image to the web browser;
A program for causing the computer to execute.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012198565A JP2014052960A (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012198565A JP2014052960A (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus and program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2014052960A true JP2014052960A (en) | 2014-03-20 |
Family
ID=50611361
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012198565A Pending JP2014052960A (en) | 2012-09-10 | 2012-09-10 | Image processing apparatus and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2014052960A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112800372A (en) * | 2021-02-03 | 2021-05-14 | 网易(杭州)网络有限公司 | Page loading method and device and electronic equipment |
-
2012
- 2012-09-10 JP JP2012198565A patent/JP2014052960A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112800372A (en) * | 2021-02-03 | 2021-05-14 | 网易(杭州)网络有限公司 | Page loading method and device and electronic equipment |
| CN112800372B (en) * | 2021-02-03 | 2023-06-13 | 网易(杭州)网络有限公司 | Page loading method and device and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9369595B2 (en) | Image forming apparatus for being able to utilize application in which web browser is used | |
| US9001340B2 (en) | Control device | |
| JP2012027662A (en) | Image formation apparatus and screen control method | |
| US20180234562A1 (en) | Information processing apparatus, control method of information processing apparatus, and recording medium | |
| JP2014011696A (en) | Image processing apparatus and computer program | |
| US10701236B2 (en) | Image processing apparatus, image processing system, and control method for activating an application therein | |
| US20080239395A1 (en) | Image processing apparatus, image data transfer control method and image data transfer control program | |
| US10136008B2 (en) | Image processing system that performs preview display, image processing apparatus, display control apparatus, display control method, and storage medium | |
| CN102447803B (en) | Complex machine | |
| RU2609751C2 (en) | Information processing apparatus, information processing method, processing apparatus, and storage medium | |
| US20120324352A1 (en) | Client server system and client device of client server system | |
| JP2006341614A (en) | Image forming apparatus and image forming method | |
| US8218185B2 (en) | Information processing apparatus and information processing method | |
| JP2009202576A (en) | Image formation method of image formation device and image formation device | |
| US10452322B2 (en) | Information processing device, information processing system, and computer program product | |
| JP6690513B2 (en) | Information processing apparatus, information processing system, and information processing method | |
| JP2014052960A (en) | Image processing apparatus and program | |
| JP2010154151A (en) | Information processor, and information processing program | |
| US20180084123A1 (en) | Image forming apparatus, control device, and screen display method | |
| US9361058B2 (en) | Image processing apparatus, information processing apparatus and method for determining whether target image is processable and acquiring processed target image from the information processing apparatus | |
| JP6044248B2 (en) | Information processing apparatus, application program introduction apparatus, and program | |
| JP2013254277A (en) | Image processing device, image processing system, and program | |
| JP5949529B2 (en) | Image processing apparatus and program | |
| JP2010191609A (en) | Work flow execution device, work flow execution method, and work flow execution program | |
| JP2009124331A (en) | Original image collecting device, and original image collecting method |