JP3870834B2 - Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program - Google Patents

Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program Download PDF

Info

Publication number
JP3870834B2
JP3870834B2 JP2002133160A JP2002133160A JP3870834B2 JP 3870834 B2 JP3870834 B2 JP 3870834B2 JP 2002133160 A JP2002133160 A JP 2002133160A JP 2002133160 A JP2002133160 A JP 2002133160A JP 3870834 B2 JP3870834 B2 JP 3870834B2
Authority
JP
Japan
Prior art keywords
layout
layout frame
image
frame
size
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.)
Expired - Fee Related
Application number
JP2002133160A
Other languages
Japanese (ja)
Other versions
JP2003333308A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002133160A priority Critical patent/JP3870834B2/en
Publication of JP2003333308A publication Critical patent/JP2003333308A/en
Application granted granted Critical
Publication of JP3870834B2 publication Critical patent/JP3870834B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)
  • Document Processing Apparatus (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、XML(eXtensibble Markup Language)等、構造化されたレイアウトルールを記述したテンプレートに従い自動レイアウト可能な、写真や図形等、画像自動レイアウト装置及び同装置におけるレイアウト枠決定方法、並びに自動レイアウトプログラムに関する。
【0002】
【従来の技術】
XML等、構造化されたレイアウトルールを記述したテンプレートに従い自動レイアウトする場合、文書データとして様々なデータが入力される。
特に、写真や図形等の画像に限っていえば、様々な縦横比を持つ画像データが入力されるため、見た目のバランスをとることが非常に困難である。
従来の画像レイアウトは、テンプレートの中に指定された画像のレイアウト枠に対して、レイアウトすべき画像データが決まった場合、その画像データの縦横比を保ったままレイアウト枠に入る最大の大きさに画像をレイアウトする。
【0003】
図7に一例が示されている。こでは幅4cm×4cmの写真レイアウト枠があったとする(a)。この写真レイアウト枠に、縦横比が1:1の正方形の写真をレイアウトする場合は、(b)に示すように、4cm×4cmと枠全体が埋まる結果となる。また、縦横比2:1の縦長の写真をレイアウトする場合は(c)に示すように、幅2cm×高さ4cmと枠の半分だけが埋まる結果となり、ディジタルカメラ等の写真データで一般的な縦横比3:4の横長の写真をレイアウトする場合は、(d)のように高さ3cm×幅4cmと枠の4分の3が埋まる結果となる。ちなみに、ここに示す例では、上寄せかつ右寄せの設定が行われている。
【0004】
【発明が解決しようとする課題】
上記したように従来の自動レイアウト方法によれば、写真の縦横比に従いレイアウトされた結果の写真の大きさが大きく異なってしまうため、例えば、1頁中に3つの写真がレイアウトされた場合等に、その3つの写真の大きさがそれぞれ大きく異なり、見た目のバランスが非常に悪くなったり、解像度が大きく違ったりする問題が発生する。
【0005】
本発明は上記事情に鑑みてなされたものであり、上記した写真を含む画像の長辺や短辺を指定の大きさにレイアウトする設定の仕方を許し、1頁中にレイアウトされる各画像の見た目のバランスを改善することのできる、画像自動レイアウト装置及び同装置におけるレイアウト枠決定方法、並びに自動レイアウトプログラムを提供することを目的とする。
また、面積を指定することによるレイアウト設定を許し、かつ、最大最小の高さや幅、あるいは解像度を指定することにより更なる改善、画質の保持等を行うことのできる、画像自動レイアウト装置及び同装置におけるレイアウト枠決定方法、並びに自動レイアウトプログラムを提供することも目的とする。
【0006】
【課題を解決するための手段】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置であって、設定される前記画像データにおける短辺または長辺の指定された一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠作成制御手段と、該レイアウト枠作成手段により作成されたレイアウト枠に、前記画像を自動的にはめ込む自動レイアウト制御手段とを備えたことを特徴とする。本発明によれば、レイアウト枠作成制御手段が、画像の縦横比を維持しながら、設定される画像における短辺または長辺の一方の長さにより仮レイアウト枠のサイズを決定し、当該サイズに従うレイアウト枠を作成することにより、画像データを作成されたレイアウト枠に自動的にはめ込むことができ、従って、例えば、1頁中にレイアウトされる各画像の見た目のバランスを改善可能な画像自動レイアウト装置を提供することができる。
【0007】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置であって、設定される前記画像データにおける短辺と長辺により決まる面積により、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠作成制御手段と、該レイアウト枠作成手段により作成されたレイアウト枠に、前記画像を自動的にはめ込む自動レイアウト制御手段とを備えたことを特徴とする。本発明によれば、レイアウト枠作成制御手段が、画像の縦横比を維持しながら、設定される画像における短辺と長辺により決まる面積によりレイアウト枠のサイズを決定し、当該サイズに従うレイアウト枠を作成することにより、画像データを作成されたレイアウト枠に自動的にはめ込むことができ、従って、例えば、1頁中にレイアウトされる各画像の見た目のバランスを改善可能な画像自動レイアウト装置を提供することができる。
【0008】
また、本発明において、前記レイアウト枠作成制御手段は、更に設定される前記画像における最大、最小の高さと幅寸法範囲に従がい、前記設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行うこと、を特徴とする。本発明によれば、更に、設定される画像における最大、最小の高さと幅寸法範囲に従がい、設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行うことで、各画像の見た目のバランスを一層改善可能な画像自動レイアウト装置を提供することができる。
【0009】
また、本発明において、前記レイアウト枠作成制御手段は、更に設定される前記画像における最大、最小の解像度の範囲に従い、前記設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行うこと、を特徴とする。本発明によれば、更に設定される画像における最大、最小の解像度の範囲に従い、設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行うことで、各画像の見た目のバランスを一層改善可能な画像自動レイアウト装置を提供することができる。
【0010】
また、本発明において、前記レイアウト枠作成制御手段は、前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準に設定すること、を特徴とする。
本発明によれば、同一頁内に作成されるレイアウト枠は、最初に設定されるレイアウト枠の長辺、または短辺、あるいは面積を基準として設定されることにより、1頁中にレイアウトされる各画像の見た目のバランスを改善する画像自動レイアウト装置を提供することができる。
【0011】
また、本発明において、前記画像における最大最小の高さと幅寸法と、最大最小の解像度の設定順序に従い、前記レイアウト枠制御手段により行われるレイアウト枠の拡大縮小への反映の優先度制御を行う優先度制御手段、を備えたことを特徴とする。本発明によれば、優先度制御手段が、画像における最大最小の高さと幅寸法と、最大最小の解像度の設定順序に従い、レイアウト枠制御手段により行われるレイアウト枠の拡大縮小への反映の優先度制御を行うことにより、レイアウト枠の作成に作成者の意図を反映させることが可能な画像自動レイアウト装置を提供することができる。
【0012】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置におけるレイアウト枠決定方法であって、定される前記画像データにおける短辺または長辺の一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールの設定値に入る大きさの仮レイアウト枠のサイズを設定し、当該サイズに従う画像データの前記レイアウト枠を作成し、前記画像データを前記レイアウト枠に自動的にはめ込むことを特徴とする。
【0013】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置におけるレイアウト枠決定方法であって、設定される前記画像データにおける短辺または長辺の指定された一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成し、該作成されたレイアウト枠に、前記画像を自動的にはめ込むことを特徴とする。
【0014】
また、本発明において、前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準として設定されること、を特徴とする。
本発明によれば、同一頁内に作成されるレイアウト枠は、最初に設定されるレイアウト枠の長辺、または短辺、あるいは面積を基準として設定されることにより、1頁中にレイアウトされる各画像の見た目のバランスを改善することができる。
【0015】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置に用いられる自動レイアウトプログラムであって、設定される前記画像データにおける短辺または長辺の一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを決定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するステップと、該作成されたレイアウト枠に、前記画像を自動的にはめ込むステップと、をコンピュータに実行させることを特徴とする。
【0016】
上記した課題を解決するために本発明は、縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置に用いられる自動レイアウトプログラムであって、設定される前記画像データにおける短辺と長辺により決まる面積により、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを決定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するステップと、該作成されたレイアウト枠に、前記画像を自動的にはめ込むステップと、をコンピュータに実行させることを特徴とする。
【0017】
また、本発明において、前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準に設定するステップ、をコンピュータに実行させることを特徴とする。
【0018】
【発明の実施の形態】
図1は、本発明における画像自動レイアウト装置の内部構成を機能展開して示したブロック図である。
本発明の画像自動レイアウト装置は、レイアウト枠設定部11と、レイアウト枠作成制御部12と、優先度制御部13と、自動レイアウト制御部14と、画像DB(データベース)15で構成される。
【0019】
レイアウト枠設定部11は、XMLを介して設定されるレイアウト枠の短辺、長辺、面積等の固定値を解読してレイアウト枠作成制御部12へ伝え、レイアウト枠作成制御部12は、画像DB15から読み出される処理画像の縦横比を維持しながら、設定される画像における短辺または長辺の一方の長さ、あるいは面積によりレイアウト枠のサイズを決定し、当該サイズに従うレイアウト枠を作成する機能を持つ。
また、自動レイアウト制御部14は、画像DB15から読み出される処理画像データを、レイアウト枠作成制御部12により作成されたレイアウト枠に自動的にはめ込む機能を持つ。
【0020】
優先度制御部13は、XMLを介して設定される、レイアウト枠の最大(Max)/最少(Min)高さ、最大/最少幅、あるいは最大/最少解像度等、幅のある数値範囲データを解読して、その優先度(ここでは設定が後ろになるにつれて優先度が高くなるものとする)に従い、レイアウト枠作成制御部12により行われるレイアウト枠の拡大縮小への反映のために行われる優先度制御を行う機能を持つ。
なお、レイアウト枠作成制御部12は、優先度制御部13を介して伝わる画像における最大、最小の高さと幅寸法範囲に従がい、その設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行う機能も有する。また、画像における最大、最小の解像度の範囲に従い、その設定を満たすレイアウト枠のサイズの拡大、もしくは縮小を行う機能も併せて有するものとする。
【0021】
図2〜図6は、図1に示す本発明実施形態の動作を説明するために引用した図であり、本発明実施形態の基本動作を示すフローチャート(図2)、詳細動作を示すフローチャート(図3、図4)、XML記述の一例(図5)、レイアウト枠設定の一例(図6)のそれぞれを示す。
なお、図2〜図4に示すフローチャートは、具体的には、本発明の自動レイアウトプログラムの処理手順を示す。
以下、図2〜図6を参照しながら図1に示す本発明実施形態の動作について詳細に説明する。
【0022】
図2において、まず、自動レイアウト制御部14は、処理対象となる画像、ここでは、画像DB15に格納されている写真データの幅と高さに関する情報を取得する(S21)。ここで、1頁にn個のレイアウト枠が設定されこととした場合、頁を構成する最初のレイアウト枠(n=1)の設定に際し(S22)、レイアウト枠作成制御部12は、固定値の処理(S23)、幅のある数値範囲の処理(S24)を行う。
前者(S23)は、短辺、長辺、面積等の指定に基づく処理であり、また、後者(S24)は、高さ、幅、解像度の指定に基づく処理であり、いずれも処理画像の縦横比を維持しながら、設定される画像における短辺または長辺の一方の長さ、あるいは面積によりレイアウト枠のサイズを決定し、当該サイズに従うレイアウト枠を作成する。また、後者における幅のある数値範囲処理については、優先度制御部13による優先度設定に基づく優先度制御が行われ(S25)、レイアウト枠の拡大縮小処理が行われる。なお、ここで優先度設定については、最新設定されるものほど優先順位が高いとする。
【0023】
そして、幅のある数値の全てに関し指定された数値内の範囲にあるか否かの矛盾チェック(S26)が行われ、矛盾がない場合は、nを+1更新(S27)してS21以降の処理を繰り返し、矛盾が発見された場合エラーとする。
なお、S22の判断ボックスにおいて、レイアウト枠が頁を構成する2番目以降であった場合、後述する“fix−length”があれば上記した最初のレイアウト枠を基準にそのサイズが決定される(S28)。
【0024】
以降では、上記した一連の処理の詳細を図3、図4に示すフローチャートを参照しながら詳細に説明する。その前に、レイアウトテンプレート上での写真レイアウト枠の設定としては、図5に示すXML記述が用いられることとする。
図5において、“position”は写真の枠を指定しており、単位は0.1mmである。次の“fix−length”がこの場合は短辺5cmという指定である。長辺の場合には“target”を“long”に変更すればよい。なお、“fix−length”中に、“always−fix”が指定されていた場合は、“min/max−width”、“heigt”設定を無視して、必ず“fix−length”で指定した値にレイアウトするものとする。
また、次に並んでいる“min/max−width”、“height”により最大/最小の幅、高さが指定され、“min/max−dpi”により最大/最小解像度が指定されるものとする。最後に“vertical”、“horizontal−align”で、ここでは上寄せかつ右寄せが指定されているものとする。
【0025】
図3に示すフローチャートにおいて、まず、レイアウトすべき写真データが決定されたら、その写真データの幅と高さに相当する横縦の画素(ピクセル)数を取得する(S31)。ここでは、例えば、横640ピクセル、縦480ピクセルの写真データをレイアウトするものとする。
次に写真のレイアウト枠に“fix−length”が指定されているか否かをチェックし(S32)、指定されている場合は、その指定に合うように、仮レイアウト枠を設定し(S33)、“fix−length”が指定されていない場合には、写真データの縦横比を保持したままレイアウト枠に入る最大の大きさに仮レイアウト枠を設定する(S34)。
【0026】
更に、“always−fix”が指定されている場合には、そのままの仮レイアウト枠を確定する(図4のS45、S46)。例えば、“fix−length”で長辺4cmという指定があった場合、この写真データでは横が長辺で縦横比3:4のため縦3cm×横4cmという仮レイアウト枠を設定する。
次に、設定した仮レイアウト枠が“max−width,height(最大幅、高さ)”の設定値を超えていないかチェックし(S36)、超えている場合にはその設定を満たすように仮レイアウト枠の縮小を行う(S37)。また、設定した仮レイアウト枠が“min−width,height(最小幅、高さ)”の設定値を超えていないかチェックし(S38)、超えている場合にはその設定を満たすように仮レイアウト枠の拡大を行う(S39)。
【0027】
図4において、更に、設定した仮レイアウト枠が“min−dpi(最小解像度)”の設定値を超えていないかチェックし(S41)、超えている場合にはその設定を満たすように仮レイアウト枠の縮小を行う(S42)。ここでは、横640ピクセルを横4cmにレイアウトするため、解像度は約406DPI(Dot/Inch)となり、“min−dpi”の設定がこの値よりも大きい場合、仮レイアウト枠を縮小する。
次に、設定した仮レイアウト枠が“max−dpi(最大解像度)”の設定値を超えていないかチェックし(S43)、超えている場合にはその設定を満たすように仮レイアウト枠の拡大を行う(S44)。そして、右寄せやセンタリング等のアライン処理(S45)を実行後、上記のように作成された仮レイアウト枠を確定し(S46)、当該サイズに従うレイアウト枠を作成し、このレイアウト枠に画像を自動的にはめ込む自動レイアウト処理を行う。
【0028】
上記した一連の処理により、見た目にバランスのとれた写真のレイアウトが可能になる。例えば、最初に説明した例に“fix−length”で短辺3cmかつ“max−width=5cm”、“max−height=5cm”という設定を適用した場合、図6にそのレイアウト例が示されるように、(b)は3cm×3cm=9cm2、(c)は5cm×2.5cm=12.5cm2、(d)は3cm×4cm=12cm2となり、バランスのとれたレイアウトが出来ることが分かる。
なお、説明が前後したが、図6に示す例では、(a)にレイアウト枠、(b)に正方形の写真をレイアウトして場合、(c)に縦長の写真をレイアウトした場合、(d)に横長の写真をレイアウトした場合のそれぞれを示す。
【0029】
なお、上記した本発明実施形態では、XML等、構造化されたレイアウトルールを記述したテンプレートを例示して説明したが、この形式に制限されることなく、自動レイアウトを可能とするものである。
また、図1に示すレイアウト枠設定部11、レイアウト枠作成制御部12、優先度制御部13、自動レイアウト制御部14のそれぞれが持つ機能を実現するためのプログラムを、それぞれコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムを、コンピュータに読み込ませ、当該コンピュータが上記プログラムを逐次読み出し実行することによって、本発明の自動レイアウト装置が構築される。また、ここでいうコンピュータシステムとは、OSや周辺機器等のハードウアを含むものとする。
【0030】
また、「コンピュータシステム」は、WWWシステムを利用している場合であれば、ホームページ提供環境(あるいは表示環境)も含むものとする。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。
【0031】
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
【0032】
以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。
【0033】
【発明の効果】
以上説明のように本発明は、写真を含む画像の長辺や短辺を指定の大きさにレイアウトする設定の仕方を許し、このことにより、1頁中にレイアウトされる各画像の見た目のバランスを改善するものであり、また、面積を指定することによるレイアウト設定を許し、かつ、最大最小の高さや幅、あるいは解像度を指定することにより更なる改善、画質の保持等を行うことができるものである。
上記したように、短辺や長辺を揃えることにより、見た目のバランスを併せることが出来、このことにより、同じピクセル数の写真データであれば解像度が同じになる可能性が高くなる。また、揃える長辺や短辺をページ内で最初に確定した写真枠のものと揃えることにより、更にバランスが取れた大きさに揃えることが可能となり、様々な縦横比を持つ画像データが入力されて1頁中に複数の入力画像がレイアウトされても見た目のバランスの改善が可能となる。
【図面の簡単な説明】
【図1】 本発明の自動レイアウト装置の内部構成を機能展開して示したブロック図である。
【図2】 本発明実施形態の基本動作を説明するために引用したフローチャートである。
【図3】 本発明実施形態の詳細動作を説明するために引用したフローチャートである。
【図4】 本発明実施形態の詳細動作を説明するために引用したフローチャートである。
【図5】 本発明実施形態の動作を説明するために引用したXML記述の一例を示す図である。
【図6】 本発明により実現される自動レイアウトの一例を示す図である。
【図7】 従来における自動レイアウトの一例を示す図である。
【符号の説明】
11…レイアウト枠設定部、12…レイアウト枠作成制御部、13…優先度制御部、14…自動レイアウト制御部、15…画像DB
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an automatic image layout apparatus, a layout frame determination method in the apparatus, and an automatic layout program capable of automatic layout according to a template describing a structured layout rule such as XML (eXtensibble Markup Language). About.
[0002]
[Prior art]
When automatic layout is performed according to a template describing a structured layout rule such as XML, various data are input as document data.
In particular, if it is limited to images such as photographs and figures, image data having various aspect ratios is input, so it is very difficult to balance the appearance.
In the conventional image layout, when the image data to be laid out is determined for the layout frame of the image specified in the template, the maximum size that fits into the layout frame is maintained while maintaining the aspect ratio of the image data. Lay out the image.
[0003]
An example is shown in FIG. Here, it is assumed that there is a photo layout frame having a width of 4 cm × 4 cm (a). When a square photo having an aspect ratio of 1: 1 is laid out in this photo layout frame, the result is that the entire frame is filled to 4 cm × 4 cm as shown in (b). In addition, when laying out a vertically long photo having an aspect ratio of 2: 1, as shown in (c), only a half of the frame is filled with a width of 2 cm × a height of 4 cm. When a horizontally long photo having an aspect ratio of 3: 4 is laid out, as shown in (d), the result is that 3 cm in height × 4 cm in width and 3/4 of the frame are filled. By the way, in the example shown here, the setting of top-alignment and right-alignment is performed.
[0004]
[Problems to be solved by the invention]
As described above, according to the conventional automatic layout method, the size of the photograph as a result of laying out according to the aspect ratio of the photograph greatly varies. For example, when three photographs are laid out on one page, etc. , The three photographs are greatly different in size, and the problem is that the balance of appearance becomes very bad and the resolution is greatly different.
[0005]
The present invention has been made in view of the above circumstances, and allows a setting method for laying out the long side and the short side of an image including the above-described photograph in a specified size, and allows each image laid out in one page to be laid out. An object of the present invention is to provide an automatic image layout apparatus, a layout frame determination method in the same apparatus, and an automatic layout program that can improve the balance of appearance.
Also, an automatic image layout apparatus and apparatus that allow layout setting by designating an area, and can further improve and maintain image quality by designating maximum and minimum height, width, or resolution. Another object of the present invention is to provide a layout frame determination method and an automatic layout program.
[0006]
[Means for Solving the Problems]
In order to solve the above-described problems, the present invention is an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. The aspect ratio of the image data is maintained by the designated one length of the short side or the long side in the image data, and the temporary layout frame having a size that falls within the set layout frame set in the layout rule. The size is set, and according to the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image preset in the template, the size of the temporary layout is set to a size satisfying these ranges. Enlarge or reduce the size, execute the alignment process for the set layout frame, and confirm the temporary layout frame. Layout frame creation control means for creating a layout frame that fits image data in accordance with the size of the temporary layout frame, and automatic layout control means for automatically fitting the image into the layout frame created by the layout frame creation means It is characterized by that. According to the present invention, the layout frame creation control means determines the size of the temporary layout frame based on the length of one of the short side or the long side in the set image while maintaining the aspect ratio of the image, and follows the size. By creating a layout frame, it is possible to automatically fit image data into the created layout frame, and thus, for example, an automatic image layout device capable of improving the visual balance of each image laid out on one page Can be provided.
[0007]
In order to solve the above-described problems, the present invention is an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. The aspect ratio of the image data is maintained by the area determined by the short side and the long side in the image data to be set, and the size of the temporary layout frame having a size that falls within the set layout frame set in the layout rule is set, According to the maximum / minimum height and width dimension ranges in the image and the maximum / minimum resolution ranges set in advance in the template, the size of the temporary layout is enlarged or reduced to a size satisfying these ranges. And execute the alignment process on the set layout frame to confirm the temporary layout frame. Layout frame creation control means for creating a layout frame that fits image data in accordance with the size of the image frame, and automatic layout control means for automatically fitting the image into the layout frame created by the layout frame creation means. It is characterized by that. According to the present invention, the layout frame creation control means determines the size of the layout frame based on the area determined by the short side and the long side in the set image while maintaining the aspect ratio of the image, and determines the layout frame according to the size. Thus, an image automatic layout apparatus capable of automatically fitting image data into the created layout frame and improving the appearance balance of each image laid out on one page is provided. be able to.
[0008]
In the present invention, the layout frame creation control means further increases or decreases the size of the temporary layout frame that satisfies the setting in accordance with the maximum and minimum height and width dimension ranges in the set image. It is characterized by this. According to the present invention, the balance of the appearance of each image is further increased by enlarging or reducing the size of the layout frame that satisfies the setting in accordance with the maximum and minimum height and width dimension ranges in the set image. An image automatic layout apparatus that can be further improved can be provided.
[0009]
Further, in the present invention, the layout frame creation control means further performs enlargement or reduction of the size of the temporary layout frame satisfying the setting according to the maximum and minimum resolution ranges in the set image. And According to the present invention, an image that can further improve the balance of the appearance of each image by enlarging or reducing the size of the layout frame that satisfies the setting in accordance with the maximum and minimum resolution ranges in the set image. An automatic layout device can be provided.
[0010]
Further, in the present invention, the layout frame creation control means may be configured such that the long side or short side or area of the set layout frame is the long side or short side of the layout frame that is initially set in the same page. It is characterized in that it is set based on a side or an area.
According to the present invention, the layout frame created in the same page is laid out in one page by setting the long side, the short side, or the area of the layout frame set first as a reference. It is possible to provide an automatic image layout apparatus that improves the balance of the appearance of each image.
[0011]
Further, in the present invention, priority control of reflection to enlargement / reduction of the temporary layout frame performed by the layout frame control means is performed according to the setting order of the maximum and minimum height and width dimensions and the maximum and minimum resolution in the image. And a priority control means. According to the present invention, the priority control means is a priority of reflection to the enlargement / reduction of the layout frame performed by the layout frame control means in accordance with the setting order of the maximum / minimum height and width dimensions and the maximum / minimum resolution in the image. By performing the control, it is possible to provide an automatic image layout apparatus that can reflect the intention of the creator in creating the layout frame.
[0012]
In order to solve the above-described problems, the present invention provides a layout frame determination method in an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. a is, by one of the length of a short side or a long side in the image data set, wherein maintaining the aspect ratio of the image data, the size of the temporary layout frame size entering the set value of the layout rule Is set, the layout frame of the image data according to the size is created, and the image data is automatically fitted into the layout frame .
[0013]
In order to solve the above-described problems, the present invention provides a layout frame determination method in an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. The size of one of the short side and the long side specified in the image data to be set maintains the aspect ratio of the image data and falls within the set layout frame set in the layout rule. The size of the temporary layout frame is set, and according to the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image preset in the template, the size satisfies these ranges. , Enlarge or reduce the size of the temporary layout, and execute the alignment process in the set layout frame To confirm the provisional layout frame according the size of the temporary layout frame, to create a layout frame to fit the image data, to the created layout frame, characterized in that fitted the image automatically.
[0014]
In the present invention, the long side, short side, or area of the layout frame that is set is set based on the long side, short side, or area of the layout frame that is set first in the same page. It is characterized by that.
According to the present invention, the layout frame created in the same page is laid out in one page by setting the long side, the short side, or the area of the layout frame set first as a reference. The balance of the appearance of each image can be improved.
[0015]
In order to solve the above-described problems, the present invention provides an automatic layout used in an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. A program that maintains the aspect ratio of the image data according to the length of one of the short side or the long side of the set image data and has a size within a set layout frame set in the layout rule. Determine the size of the layout frame, and according to the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image preset in the template, to the size satisfying these ranges, Increase or reduce the size of the temporary layout and execute the alignment process in the setting layout frame. Determining a layout frame and causing a computer to execute a step of creating a layout frame that fits image data according to the size of the temporary layout frame, and a step of automatically fitting the image into the created layout frame It is characterized by.
[0016]
In order to solve the above-described problems, the present invention provides an automatic layout used in an image automatic layout apparatus that fits image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template. A temporary layout frame having a size within a set layout frame set in the layout rule, wherein the aspect ratio of the image data is maintained by an area determined by a short side and a long side in the set image data And determining the size according to the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image preset in the template, and satisfying these ranges. The size is enlarged or reduced, and the alignment process is executed in the setting layout frame. Determining a layout frame and causing a computer to execute a step of creating a layout frame that fits image data according to the size of the temporary layout frame, and a step of automatically fitting the image into the created layout frame It is characterized by.
[0017]
In the present invention, the long side, short side, or area of the layout frame that is set is set based on the long side, short side, or area of the layout frame that is set first in the same page. And causing the computer to execute.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a functional block diagram showing the internal configuration of the automatic image layout apparatus according to the present invention.
The image automatic layout apparatus according to the present invention includes a layout frame setting unit 11, a layout frame creation control unit 12, a priority control unit 13, an automatic layout control unit 14, and an image DB (database) 15.
[0019]
The layout frame setting unit 11 decodes fixed values such as the short side, long side, and area of the layout frame set via XML, and transmits them to the layout frame creation control unit 12. The layout frame creation control unit 12 A function of determining the size of the layout frame based on the length or area of one of the short side or the long side in the set image and creating the layout frame according to the size while maintaining the aspect ratio of the processed image read from the DB 15 have.
The automatic layout control unit 14 has a function of automatically fitting the processed image data read from the image DB 15 into the layout frame created by the layout frame creation control unit 12.
[0020]
The priority control unit 13 decodes the numerical value range data having a width such as the maximum (Max) / minimum (Min) height, the maximum / minimum width, or the maximum / minimum resolution of the layout frame set through XML. Then, in accordance with the priority (here, the priority becomes higher as the setting is set later), the priority performed for reflection in the layout frame enlargement / reduction performed by the layout frame creation control unit 12 Has a function to control.
The layout frame creation control unit 12 is a function for enlarging or reducing the size of the layout frame that satisfies the setting according to the maximum and minimum height and width dimension ranges in the image transmitted via the priority control unit 13. Also have. In addition, according to the maximum and minimum resolution ranges in the image, a function for enlarging or reducing the size of the layout frame that satisfies the setting is also included.
[0021]
2 to 6 are drawings for explaining the operation of the embodiment of the present invention shown in FIG. 1, and are a flowchart showing the basic operation of the embodiment of the present invention (FIG. 2) and a flowchart showing the detailed operation (FIG. 2). 3, FIG. 4), an example of XML description (FIG. 5), and an example of layout frame setting (FIG. 6).
The flowcharts shown in FIGS. 2 to 4 specifically show the processing procedure of the automatic layout program of the present invention.
Hereinafter, the operation of the embodiment of the present invention shown in FIG. 1 will be described in detail with reference to FIGS.
[0022]
In FIG. 2, first, the automatic layout control unit 14 acquires information regarding the width and height of the image to be processed, here, the photo data stored in the image DB 15 (S21). Here, when n layout frames are set for one page, the layout frame creation control unit 12 sets a fixed value when setting the first layout frame (n = 1) constituting the page (S22). Processing (S23) and processing of a wide numerical range (S24) are performed.
The former (S23) is processing based on designation of short sides, long sides, area, and the like, and the latter (S24) is processing based on designation of height, width, and resolution. While maintaining the ratio, the size of the layout frame is determined based on the length or area of one of the short side or the long side in the set image, and a layout frame according to the size is created. In the latter numerical range processing, priority control based on priority setting is performed by the priority control unit 13 (S25), and layout frame enlargement / reduction processing is performed. Here, regarding the priority setting, it is assumed that the latest setting has a higher priority.
[0023]
Then, a contradiction check (S26) is performed to determine whether or not all of the wide numerical values are within the specified numerical range. If there is no contradiction, n is updated by +1 (S27), and the processing after S21 If an inconsistency is found, an error is assumed.
In the determination box of S22, if the layout frame is the second or later constituting the page, if there is a “fix-length” described later, the size is determined based on the first layout frame described above (S28). ).
[0024]
Hereinafter, details of the series of processes described above will be described in detail with reference to the flowcharts shown in FIGS. Before that, the XML description shown in FIG. 5 is used as the setting of the photo layout frame on the layout template.
In FIG. 5, “position” designates a frame of a photograph, and its unit is 0.1 mm. The next “fix-length” is designated as a short side of 5 cm in this case. In the case of the long side, “target” may be changed to “long”. If "always-fix" is specified in "fix-length", the "min / max-width" and "height" settings are ignored and the value specified by "fix-length" is always used. The layout shall be as follows.
In addition, the maximum / minimum width and height are designated by “min / max-width” and “height” next to each other, and the maximum / minimum resolution is designated by “min / max-dpi”. . Finally, it is assumed that “vertical” and “horizontal-align” are designated to be top-justified and right-justified here.
[0025]
In the flowchart shown in FIG. 3, first, when photographic data to be laid out is determined, the number of horizontal and vertical pixels (pixels) corresponding to the width and height of the photographic data is acquired (S31). Here, for example, it is assumed that photo data of 640 pixels wide and 480 pixels high is laid out.
Next, it is checked whether or not “fix-length” is specified for the photo layout frame (S32). If it is specified, a temporary layout frame is set to meet the specification (S33), If "fix-length" is not designated, the temporary layout frame is set to the maximum size that can be entered into the layout frame while maintaining the aspect ratio of the photo data (S34).
[0026]
Furthermore, when “always-fix” is designated, the temporary layout frame as it is is determined (S45 and S46 in FIG. 4). For example, when “fix-length” is specified as 4 cm in the long side, a temporary layout frame of 3 cm in length × 4 cm in width is set in this photo data because the horizontal is the long side and the aspect ratio is 3: 4.
Next, it is checked whether or not the set temporary layout frame exceeds the set value of “max-width, height (maximum width, height)” (S36). The layout frame is reduced (S37). Also, it is checked whether or not the set temporary layout frame exceeds the set value of “min-width, height (minimum width, height)” (S38). The frame is enlarged (S39).
[0027]
In FIG. 4, it is further checked whether the set temporary layout frame exceeds the set value of “min-dpi (minimum resolution)” (S41). Is reduced (S42). Here, since the horizontal 640 pixels are laid out 4 cm wide, the resolution is about 406 DPI (Dot / Inch), and when the “min-dpi” setting is larger than this value, the temporary layout frame is reduced.
Next, it is checked whether or not the set temporary layout frame exceeds the set value of “max-dpi (maximum resolution)” (S43). If it exceeds, the temporary layout frame is enlarged so as to satisfy the setting. Perform (S44). Then, after executing alignment processing (S45) such as right alignment and centering, the temporary layout frame created as described above is determined (S46), a layout frame according to the size is created, and an image is automatically placed in this layout frame. Performs automatic layout processing that fits in.
[0028]
The series of processes described above makes it possible to lay out photographs that are balanced in appearance. For example, in the case where the setting of “fix-length” with a short side of 3 cm, “max-width = 5 cm”, and “max-height = 5 cm” is applied to the example described first, the layout example is shown in FIG. Further, (b) is 3 cm × 3 cm = 9 cm 2, (c) is 5 cm × 2.5 cm = 12.5 cm 2, and (d) is 3 cm × 4 cm = 12 cm 2, and it can be seen that a balanced layout can be achieved.
In the example shown in FIG. 6, in the example shown in FIG. 6, when a layout frame is laid out in (a), a square photo is laid out in (b), a vertically long photo is laid out in (c), (d) Fig. 6 shows the layout of landscape photos.
[0029]
In the above-described embodiment of the present invention, a template describing a structured layout rule such as XML has been described as an example. However, the present invention is not limited to this format, and automatic layout is possible.
In addition, each of the programs for realizing the functions of the layout frame setting unit 11, the layout frame creation control unit 12, the priority control unit 13, and the automatic layout control unit 14 shown in FIG. The automatic layout device of the present invention is constructed by causing a computer to read the program recorded on the recording medium and reading the program sequentially and executing the program. The computer system here includes an OS and hardware such as peripheral devices.
[0030]
Further, the “computer system” includes a homepage providing environment (or display environment) if a WWW system is used.
The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Further, the “computer-readable recording medium” refers to a volatile memory (RAM) in a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In addition, those holding programs for a certain period of time are also included.
[0031]
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
[0032]
The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.
[0033]
【The invention's effect】
As described above, the present invention allows a setting method for laying out the long side and the short side of an image including a photograph to a specified size, and thus, the balance of the appearance of each image laid out on one page. The layout can be set by specifying the area, and the maximum and minimum height, width, or resolution can be specified, and further improvement and image quality maintenance can be performed. It is.
As described above, it is possible to balance the appearance by aligning the short side and the long side, and this increases the possibility that the resolution will be the same if the photo data has the same number of pixels. In addition, by aligning the long side and short side to be aligned with those of the photo frame that was first confirmed in the page, it becomes possible to make the size more balanced, and image data with various aspect ratios is input. Thus, even if a plurality of input images are laid out on one page, the balance of appearance can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an expanded function of an internal configuration of an automatic layout apparatus according to the present invention.
FIG. 2 is a flowchart cited for explaining the basic operation of the embodiment of the present invention.
FIG. 3 is a flowchart cited for explaining detailed operation of the embodiment of the present invention;
FIG. 4 is a flowchart cited for explaining the detailed operation of the embodiment of the present invention.
FIG. 5 is a diagram showing an example of XML description cited for explaining the operation of the embodiment of the present invention;
FIG. 6 is a diagram showing an example of an automatic layout realized by the present invention.
FIG. 7 is a diagram illustrating an example of a conventional automatic layout.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 11 ... Layout frame setting part, 12 ... Layout frame creation control part, 13 ... Priority control part, 14 ... Automatic layout control part, 15 ... Image DB

Claims (10)

縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置であって、
設定される前記画像データにおける短辺または長辺の指定された一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠作成制御手段と、
該レイアウト枠作成手段により作成されたレイアウト枠に、前記画像を自動的にはめ込む自動レイアウト制御手段と
を備えたことを特徴とする画像自動レイアウト装置。
An image automatic layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The temporary layout frame of a size that maintains the aspect ratio of the image data and falls within the set layout frame set in the layout rule by the designated one length of the short side or the long side in the image data to be set The temporary layout is set to a size satisfying these ranges according to the maximum / minimum height and width dimension ranges and the maximum / minimum resolution ranges in the image preset in the template. Layout frame creation control means for creating a layout frame that fits image data according to the size of the temporary layout frame. ,
An automatic image layout apparatus comprising: automatic layout control means for automatically fitting the image into a layout frame created by the layout frame creation means.
縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置であって、
設定される前記画像データにおける短辺と長辺により決まる面積により、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠作成制御手段と、
該レイアウト枠作成手段により作成されたレイアウト枠に、前記画像を自動的にはめ込む自動レイアウト制御手段と
を備えたことを特徴とする画像自動レイアウト装置。
An image automatic layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The aspect ratio of the image data is maintained by the area determined by the short side and the long side in the image data to be set, and the size of the temporary layout frame that fits into the set layout frame set in the layout rule is set. In accordance with the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image set in advance in the template, the size of the temporary layout is increased to a size satisfying these ranges. Layout frame creation control means for performing reduction processing, executing alignment processing in the set layout frame to determine a temporary layout frame, and creating a layout frame that fits image data according to the size of the temporary layout frame;
An automatic image layout apparatus comprising: automatic layout control means for automatically fitting the image into a layout frame created by the layout frame creation means.
前記レイアウト枠作成制御手段は、
前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、
同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準に設定すること、を特徴とする請求項1または2に記載の画像自動レイアウト装置。
The layout frame creation control means includes:
The long side, short side, or area of the set layout frame is
3. The automatic image layout apparatus according to claim 1, wherein the layout is set based on a long side, a short side, or an area of the layout frame that is initially set in the same page.
前記画像における最大最小の高さと幅寸法と、最大最小の解像度の設定順序に従い、前記レイアウト枠制御手段により行われる仮レイアウト枠の拡大縮小への反映の優先度制御を行う優先度制御手段、
を備えたことを特徴とする請求項1から3のいずれか1項に記載の画像自動レイアウト装置。
Priority control means for performing priority control of reflection to enlargement / reduction of the temporary layout frame performed by the layout frame control means in accordance with the setting order of maximum and minimum height and width dimensions and maximum and minimum resolution in the image;
The image automatic layout apparatus according to any one of claims 1 to 3, further comprising:
縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置におけるレイアウト枠決定方法であって、
設定される前記画像データにおける短辺または長辺の指定された一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠に、前記画像を自動的にはめ込むことを特徴とするレイアウト枠決定方法。
A layout frame determination method in an automatic image layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The temporary layout frame of a size that maintains the aspect ratio of the image data and falls within the set layout frame set in the layout rule by the designated one length of the short side or the long side in the image data to be set The temporary layout is set to a size satisfying these ranges according to the maximum / minimum height and width dimension ranges and the maximum / minimum resolution ranges in the image preset in the template. The size of the image is enlarged or reduced, the alignment process is executed in the set layout frame to determine the temporary layout frame, and the image is added to the layout frame for creating the layout frame into which the image data is inserted according to the size of the temporary layout frame. Layout frame determination method characterized by automatically fitting
縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置におけるレイアウト枠決定方法であって、
設定される前記画像データにおける短辺と長辺により決まる面積により、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを設定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するレイアウト枠に、前記画像を自動的にはめ込むことを特徴とするレイアウト枠決定方法。
A layout frame determination method in an automatic image layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The aspect ratio of the image data is maintained by the area determined by the short side and the long side in the image data to be set, and the size of the temporary layout frame that fits into the set layout frame set in the layout rule is set. In accordance with the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image set in advance in the template, the size of the temporary layout is increased to a size satisfying these ranges. Reduce the size, execute alignment processing on the set layout frame to determine the temporary layout frame, and automatically fit the image into the layout frame that creates the layout frame into which the image data is inserted according to the size of the temporary layout frame A layout frame determination method characterized by that.
前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、
同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準に設定されること、
を特徴とする請求項5または6に記載のレイアウト枠決定方法。
The long side, short side, or area of the set layout frame is
Set on the basis of the long side, short side, or area of the layout frame set first in the same page,
The layout frame determination method according to claim 5, wherein:
縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置に用いられる自動レイアウトプログラムであって、
設定される前記画像データにおける短辺または長辺の一方の長さにより、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを決定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するステップと、
該作成されたレイアウト枠に、前記画像を自動的にはめ込むステップと、
をコンピュータに実行させる自動レイアウトプログラム。
An automatic layout program used in an automatic image layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The aspect ratio of the image data is maintained by the length of one of the short side or the long side in the set image data, and the size of the temporary layout frame having a size that falls within the set layout frame set in the layout rule is set. In accordance with the maximum / minimum height and width dimension ranges and the maximum / minimum resolution ranges in the image preset in the template, the size of the temporary layout is set to a size satisfying these ranges. Enlarging or reducing, executing alignment processing in the set layout frame to determine a temporary layout frame, and creating a layout frame that fits image data according to the size of the temporary layout frame;
Automatically fitting the image into the created layout frame;
An automatic layout program that causes a computer to execute.
縦y、横x画素で構成される画像データを、テンプレートに記述されたレイアウトルールに従い設定されるレイアウト枠にはめ込む画像自動レイアウト装置に用いられる自動レイアウトプログラムであって、
設定される前記画像データにおける短辺と長辺により決まる面積により、前記画像データの縦横比を維持し、前記レイアウトルールに設定された設定レイアウト枠に入る大きさの仮レイアウト枠のサイズを決定し、前記テンプレートに予め設定されている前記画像における最大・最小の高さ及び幅寸法範囲と、最大・最小の解像度の範囲とに従い、これらの範囲を満たすサイズに、前記仮レイアウトのサイズの拡大もしくは縮小を行い、前記設定レイアウト枠におけるアライン処理を実行して仮レイアウト枠を確定し、この仮レイアウト枠のサイズに従い、画像データをはめ込むレイアウト枠を作成するステップと、
該作成されたレイアウト枠に、前記画像を自動的にはめ込むステップと、
をコンピュータに実行させる自動レイアウトプログラム。
An automatic layout program used in an automatic image layout apparatus for fitting image data composed of vertical y and horizontal x pixels into a layout frame set according to a layout rule described in a template,
The aspect ratio of the image data is maintained according to the area determined by the short side and the long side in the set image data, and the size of the temporary layout frame having a size that falls within the set layout frame set in the layout rule is determined. In accordance with the maximum / minimum height and width dimension range and the maximum / minimum resolution range in the image set in advance in the template, the size of the temporary layout is increased to a size satisfying these ranges. Reducing the size, executing alignment processing in the set layout frame to determine the temporary layout frame, and creating a layout frame that fits image data according to the size of the temporary layout frame;
Automatically fitting the image into the created layout frame;
An automatic layout program that causes a computer to execute.
前記設定されるレイアウト枠の長辺、または短辺、あるいは面積は、
同一頁内で最初に設定される前記レイアウト枠の長辺、または短辺、あるいは面積を基準に設定するステップ、
をコンピュータに実行させる請求項8または9に記載の自動レイアウトプログラム。
The long side, short side, or area of the set layout frame is
A step of setting a long side, a short side, or an area of the layout frame that is initially set in the same page as a reference;
10. The automatic layout program according to claim 8 or 9, wherein the computer is executed.
JP2002133160A 2002-05-08 2002-05-08 Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program Expired - Fee Related JP3870834B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002133160A JP3870834B2 (en) 2002-05-08 2002-05-08 Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002133160A JP3870834B2 (en) 2002-05-08 2002-05-08 Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program

Publications (2)

Publication Number Publication Date
JP2003333308A JP2003333308A (en) 2003-11-21
JP3870834B2 true JP3870834B2 (en) 2007-01-24

Family

ID=29696305

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002133160A Expired - Fee Related JP3870834B2 (en) 2002-05-08 2002-05-08 Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program

Country Status (1)

Country Link
JP (1) JP3870834B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4165888B2 (en) 2004-01-30 2008-10-15 キヤノン株式会社 Layout control method, layout control apparatus, and layout control program
US10152459B2 (en) 2013-02-20 2018-12-11 Google Llc Intelligent window placement with multiple windows using high DPI screens
JP6268891B2 (en) 2013-10-07 2018-01-31 セイコーエプソン株式会社 Collage image creation program, collage image creation method, and collage image creation apparatus
JP7109910B2 (en) * 2017-12-11 2022-08-01 キヤノンメディカルシステムズ株式会社 Image interpretation report creation support device and image interpretation report creation support method

Also Published As

Publication number Publication date
JP2003333308A (en) 2003-11-21

Similar Documents

Publication Publication Date Title
USRE48430E1 (en) Two-dimensional code processing method and terminal
US8717615B2 (en) Method and apparatus for requesting printing of panoramic image in mobile device
JP3963865B2 (en) Map display system and map display method
CN102272794B (en) Systems and methods for socially-based correction of tilted images
JP2005534108A (en) Imaging system that provides dynamic viewport tiering optimized for specific client device types
US9754350B2 (en) Systems and methods of automatic image sizing
US20090300519A1 (en) Conference system, data processing apparatus, image transmission method, and image transmission program embodied on computer readable medium
US8448066B2 (en) Document editing device, document editing method and computer readable medium
CA2956086A1 (en) Optimized rendering of shared documents on client devices with document raster representations
JP3870834B2 (en) Image automatic layout apparatus, layout frame determination method in the apparatus, and automatic layout program
JP6926763B2 (en) Image processing equipment and programs
AU2009200701B2 (en) Image processor, image processing method, image processing program, and image processing system
JP2009020862A (en) Imaging apparatus, electronic album system, and image storage device
JP2007141152A (en) Digital camera, printing device, and image supply device
JP2001273513A (en) Method and system for picture editing
JP2005250716A (en) Image processing system
JP6591000B1 (en) Image processing apparatus, image processing method, and image processing program
JP2000134458A (en) Image processing method and its system
US20070279692A1 (en) Method and apparatus to generate XHTML contents
JP2005249841A (en) Image transmitting apparatus, image transmitting method, image transmitting program and computer
JP2020099014A (en) Content processor, content processing system, method for processing content, and program
JP2002354309A (en) Digital camera link system and record medium recording image data processing program
JP3796950B2 (en) Image input device and image input system
JP2007041943A (en) Document processing apparatus
JP5977342B2 (en) Electronic comic data compression apparatus, method and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050330

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20050513

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050620

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060307

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20060407

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060508

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20060522

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060926

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061009

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101027

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101027

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111027

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121027

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121027

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131027

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees