JP2002218402A - Device and method for converting image file format - Google Patents

Device and method for converting image file format

Info

Publication number
JP2002218402A
JP2002218402A JP2001015333A JP2001015333A JP2002218402A JP 2002218402 A JP2002218402 A JP 2002218402A JP 2001015333 A JP2001015333 A JP 2001015333A JP 2001015333 A JP2001015333 A JP 2001015333A JP 2002218402 A JP2002218402 A JP 2002218402A
Authority
JP
Japan
Prior art keywords
exif
image data
image file
jfif
compressed
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
Application number
JP2001015333A
Other languages
Japanese (ja)
Inventor
Munemoto Shiaku
宗基 塩飽
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2001015333A priority Critical patent/JP2002218402A/en
Publication of JP2002218402A publication Critical patent/JP2002218402A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

PROBLEM TO BE SOLVED: To convert a JFIF(JPEG File Interchange format) image file into an Exif(Exchangeable Image File Format). SOLUTION: An original image reproducing means 120 reproduces an original image from compressed image data acquired via an image file inputting means 110. A thumbnail generating means 130 generates a thumbnail from the reproduced original image data, and outputs the thumbnail to an Exif generating means 140. The Exif generating means 140 inputs an APP0 marker, the compressed image data and the thumbnail, extracts data applicable to the APP1 of the Exif from the APP0 to generate tag information, and combines the tag information with the thumbnail and a header to generate an APP1 marker. The generating means 140 further combines the APP1 marker with the compressed image data to generate an Exif image file and sends the Exif image file to an image file outputting means 150. The outputting means 150 outputs the Exif image file to the outside or stores the Exif image file in a storing means 160.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像ファイルのフォ
ーマット変換装置及びそのフォーマット変換方法に関
し、特に圧縮画像データとその関連情報とから構成され
るJFIFの画像ファイルをExifに変換する画像フ
ァイルのフォーマット変換装置及びそのフォーマット変
換方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image file format conversion apparatus and format conversion method, and more particularly to a format conversion of an image file for converting a JFIF image file composed of compressed image data and related information into Exif. The present invention relates to an apparatus and a format conversion method thereof.

【0002】[0002]

【従来の技術】従来、デジタルカメラ等によって撮影さ
れたデジタル画像データは、JFIFで記録されてい
た。JFIFは、ヘッダと圧縮画像とから構成されてい
る。
2. Description of the Related Art Conventionally, digital image data photographed by a digital camera or the like has been recorded in JFIF. JFIF is composed of a header and a compressed image.

【0003】写真データ等の画像データは、ファイル名
を見ただけではファイルの内容がわからない。そこで、
近年では、ファイル名を選択しただけでデータのイメー
ジを小さく表示するサムネイル機能が、画像処理アプリ
ケーションばかりでなく、ワープロ等のアプリケーショ
ンにも搭載されるようになってきている。
[0003] For image data such as photographic data, the contents of the file cannot be understood only by looking at the file name. Therefore,
In recent years, a thumbnail function for displaying a data image in a small size just by selecting a file name has been installed not only in an image processing application but also in an application such as a word processor.

【0004】このような背景から、最近では、撮影条件
等の情報が記録され、さらにサムネイルファイルも含ん
だ形で圧縮画像を記録するExifが主流となってい
る。Exifのデータファイルは、タグ情報、サムネイ
ル、及びヘッダとから成るAPP1マーカと、圧縮画像
データとから構成される。
From such a background, recently, Exif, which records information such as photographing conditions and records a compressed image including a thumbnail file, has become mainstream. An Exif data file includes an APP1 marker including tag information, a thumbnail, and a header, and compressed image data.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、Exi
fに対応する機器には、JFIFで記録された画像デー
タを再生できない場合があるという問題がある。
However, the Exi
The device corresponding to f has a problem that image data recorded by JFIF may not be able to be reproduced.

【0006】上記の説明のように、JFIFは、ヘッダ
+圧縮画像であり、ヘッダの中にサムネイルを含めるこ
ともできる。しかしながら、JFIFに対応した機器の
うち、特に、画像データをフロッピー(登録商標)ディ
スクに記録するような機器では、撮影から記録までの時
間を短縮するためにサムネイルの生成を行なっていない
ものがあった。そして、サムネイルの代わりに別のファ
イルを作成していた。このため、JFIFで記録された
画像データがExifに対応する機器で再生することが
できないという問題が生じていた。
As described above, JFIF is a header + compressed image, and a thumbnail can be included in the header. However, among devices compatible with JFIF, particularly, devices that record image data on a floppy (registered trademark) disk do not generate thumbnails in order to reduce the time from shooting to recording. Was. And they created another file instead of a thumbnail. For this reason, there has been a problem that the image data recorded in JFIF cannot be reproduced by a device compatible with Exif.

【0007】本発明はこのような点に鑑みてなされたも
のであり、JFIFの画像ファイルをExifに変換す
る画像ファイルのフォーマット変換装置及びそのフォー
マット変換方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide an image file format conversion apparatus and a format conversion method for converting a JFIF image file into Exif.

【0008】[0008]

【課題を解決するための手段】本発明では上記課題を解
決するために、圧縮画像データとその関連情報とから構
成されるJFIFの画像ファイルをExifに変換する
画像ファイルのフォーマット変換装置において、前記J
FIFの画像ファイルから前記圧縮画像データを抽出し
て伸張し、前記圧縮画像データの原画像データを再生す
る原画像再生手段と、前記再生された原画像データのサ
ムネイルを生成するサムネイル生成手段と、前記JFI
Fの画像ファイルからExifに適用可能な情報を抽出
し、前記サムネイル及び前記適用可能な情報とを用いて
Exifのデジタル画像ファイルを生成するExif生
成手段と、を有することを特徴とする画像ファイルのフ
ォーマット変換装置、が提供される。
According to the present invention, there is provided an image file format conversion apparatus for converting a JFIF image file composed of compressed image data and related information into Exif. J
Original image reproducing means for extracting and decompressing the compressed image data from the FIF image file and reproducing the original image data of the compressed image data; thumbnail generating means for generating a thumbnail of the reproduced original image data; The JFI
Exif generation means for extracting information applicable to Exif from the image file of F and generating a digital image file of Exif using the thumbnail and the applicable information. A format conversion device is provided.

【0009】このような構成のフォーマット変換装置で
は、原画像再生手段は、圧縮画像データとその関連情報
とから構成されるJFIFの画像ファイルから圧縮画像
データを抽出し、これを伸張して、原画像データを再生
する。サムネイル生成手段は、再生された原画像データ
のサムネイルを生成する。Exif生成手段は、JFI
Fで作成されたデジタル画像ファイルのうち、Exif
に適用することのできる情報を抽出し、この抽出した情
報とサムネイルとを用いて、Exifの画像ファイルを
生成する。
In the format conversion apparatus having such a configuration, the original image reproducing means extracts the compressed image data from the JFIF image file composed of the compressed image data and the related information, and decompresses the extracted image data. Play image data. The thumbnail generating means generates a thumbnail of the reproduced original image data. Exif generating means is a JFI
Exif among the digital image files created in F
Then, information that can be applied to the image is extracted, and an Exif image file is generated using the extracted information and the thumbnail.

【0010】また、上記課題を解決するために、圧縮画
像データとその関連情報とから構成されるJFIFの画
像ファイルをExifに変換する画像ファイルのフォー
マット変換方法において、前記JFIFの画像ファイル
から前記圧縮画像データを抽出し、前記圧縮画像データ
を伸張して原画像データを再生し、前記再生された原画
像データのサムネイルを生成し、前記JFIFの画像フ
ァイルからExifに適用可能な情報を抽出してExi
fの関連情報であるタグ情報を生成し、前記サムネイ
ル、前記タグ情報、及び前記JFIFの画像ファイルの
圧縮画像データとを編集してExifの画像ファイルを
生成する手順を有することを特徴とする画像ファイルの
フォーマット変換方法、が提供される。
According to another aspect of the present invention, there is provided an image file format conversion method for converting a JFIF image file composed of compressed image data and related information into Exif. Extracting image data, decompressing the compressed image data to reproduce the original image data, generating a thumbnail of the reproduced original image data, extracting information applicable to Exif from the JFIF image file, Exi
generating an Exif image file by generating tag information that is related information of the f, and editing the thumbnail, the tag information, and the compressed image data of the JFIF image file. A file format conversion method is provided.

【0011】このような手順のフォーマット変換方法で
は、まず、圧縮画像データとその関連情報とから構成さ
れるJFIFの画像ファイルから、原画像が圧縮された
圧縮画像データを抽出し、抽出された圧縮画像データを
伸張して原画像データを再生する。次に、再生された原
画像データに基づいてサムネイルを生成する。さらに、
JFIFで作成された関連情報のうち、Exifに適用
できる情報を抽出し、これに基づいてタグ情報を生成す
る。続いて、サムネイル、タグ情報、及びJFIFの画
像ファイルの圧縮画像データとを編集してExifの画
像ファイルを生成する。
In the format conversion method of such a procedure, first, compressed image data in which an original image is compressed is extracted from a JFIF image file composed of compressed image data and related information, and the extracted compressed image data is extracted. The original image data is reproduced by expanding the image data. Next, a thumbnail is generated based on the reproduced original image data. further,
Among the related information created by JFIF, information applicable to Exif is extracted, and tag information is generated based on the extracted information. Subsequently, the thumbnail, the tag information, and the compressed image data of the JFIF image file are edited to generate an Exif image file.

【0012】また、上記課題を解決するために、圧縮画
像データとその関連情報とから構成されるJFIFの画
像ファイルをExifに変換する画像ファイルのフォー
マット変換方法において、前記JFIFの画像ファイル
から前記圧縮画像データを抽出し、前記圧縮画像データ
を伸張して原画像データを再生し、前記再生された原画
像データのサムネイル及び圧縮画像データを生成して前
記Exifの画像ファイルを編集し、前記JFIFの関
連情報からExifに適用可能な情報を抽出して前記編
集されたExifの画像ファイルの対応する情報と置き
換えを行なってExifの画像ファイルを生成する手順
を有することを特徴とする画像ファイルのフォーマット
変換方法、が提供される。
According to another aspect of the present invention, there is provided an image file format conversion method for converting a JFIF image file composed of compressed image data and related information into Exif. The image data is extracted, the compressed image data is expanded, the original image data is reproduced, the thumbnail of the reproduced original image data and the compressed image data are generated, the Exif image file is edited, and the JFIF file is edited. Exif information applicable to Exif is extracted from the related information and replaced with the corresponding information of the edited Exif image file to generate an Exif image file. A method is provided.

【0013】このような手順のフォーマット変換方法で
は、まず、圧縮画像データとその関連情報とから構成さ
れるJFIFの画像ファイルから、原画像が圧縮された
圧縮画像データを抽出し、抽出された圧縮画像データを
伸張して原画像データを再生する。次に、再生された原
画像データに基づいてサムネイルと圧縮画像データとを
生成し、Exifの画像ファイルを編集する。次に、J
FIFで作成された関連情報のうち、Exifに適用で
きる情報を抽出し、抽出した情報をExifの画像ファ
イルの対応する情報と置き換えて、画像ファイルを生成
する。
In the format conversion method of such a procedure, first, compressed image data in which an original image is compressed is extracted from a JFIF image file composed of compressed image data and related information, and the extracted compressed image data is extracted. The original image data is reproduced by expanding the image data. Next, a thumbnail and compressed image data are generated based on the reproduced original image data, and the Exif image file is edited. Next, J
From the related information created by the FIF, information applicable to Exif is extracted, and the extracted information is replaced with the corresponding information of the Exif image file to generate an image file.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1は、本発明の一実施の形態で
ある画像ファイルのフォーマット変換装置の構成図であ
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram of an image file format conversion apparatus according to an embodiment of the present invention.

【0015】本発明に係る画像ファイルのフォーマット
変換装置100は、JFIFの画像ファイルを入力する
画像ファイル入力手段110、入力した画像ファイルか
ら原画像を再生する原画像再生手段120、サムネイル
を生成するサムネイル生成手段130、Exifの画像
ファイルを生成するExif生成手段140、生成され
たExifの画像ファイルを外部に出力する画像ファイ
ル出力手段150、及び生成された画像ファイルを記憶
する記憶手段160とから構成される。
An image file format conversion apparatus 100 according to the present invention includes an image file input means 110 for inputting a JFIF image file, an original image reproducing means 120 for reproducing an original image from the input image file, and a thumbnail for generating a thumbnail. The image processing apparatus includes: a generation unit 130; an Exif generation unit 140 that generates an Exif image file; an image file output unit 150 that outputs the generated Exif image file to the outside; and a storage unit 160 that stores the generated image file. You.

【0016】画像ファイル入力手段110は、デジタル
カメラ等により撮影されたデジタル画像データをJPE
G形式で圧縮した圧縮画像データと、圧縮画像データの
関連情報であるアプリケーション・マーカ(以下、AP
P0マーカとする)とから構成されるJFIFの画像フ
ァイルを外部から入力する。画像ファイルから、圧縮画
像データを抽出し、原画像再生手段120へ送る。ま
た、Exif生成手段140に対して、APP0マーカ
と圧縮画像データとを出力する。画像ファイル入力手段
110は、外部から取り込んだ画像ファイルを入力して
一時保存し、原画像再生手段120及びExif生成手
段140が必要に応じて一時保存されたデータを読み込
むとすることもできる。
The image file input means 110 converts digital image data taken by a digital camera or the like into a JPE.
Compressed image data compressed in the G format and an application marker (hereinafter referred to as AP) which is related information of the compressed image data.
PF marker) is input from outside. The compressed image data is extracted from the image file and sent to the original image reproducing means 120. Further, it outputs the APP0 marker and the compressed image data to the Exif generation means 140. The image file input means 110 may input an image file taken from the outside and temporarily store the image file, and the original image reproducing means 120 and the Exif generating means 140 may read the temporarily stored data as needed.

【0017】原画像再生手段120は、JFIFの画像
ファイルから抽出された圧縮画像データを伸張し、原画
像データを再生する。画像ファイル入力手段110に一
時保存された画像ファイルから圧縮画像データを抽出
し、原画像データを再生するとしてもよい。再生された
再生原画像データは、サムネイル生成手段130へ出力
する。
The original image reproducing means 120 expands the compressed image data extracted from the JFIF image file and reproduces the original image data. The compressed image data may be extracted from the image file temporarily stored in the image file input unit 110, and the original image data may be reproduced. The reproduced original image data reproduced is output to the thumbnail generating means 130.

【0018】サムネイル生成手段130は、原画像再生
手段120から再生原画像データを入力し、このサムネ
イルを生成する。サムネイルは、Exif生成手段14
0へ出力する。
The thumbnail generating means 130 receives the reproduced original image data from the original image reproducing means 120 and generates this thumbnail. The thumbnail is stored in the Exif generation unit 14.
Output to 0.

【0019】Exif生成手段140は、画像ファイル
入力手段110経由でAPP0マーカと圧縮画像データ
を取得するとともに、サムネイル生成手段130よりサ
ムネイルを取得し、Exifの画像ファイルを生成す
る。図2を用いて説明する。図2は、本発明の一実施の
形態である画像ファイルのフォーマット変換装置におけ
る変換画像ファイルの構成図である。JFIFの画像フ
ァイル200は、APP0マーカ210と圧縮画像デー
タ220とから構成される。一方、Exifの画像ファ
イル300は、ヘッダ、タグ情報、及びサムネイルとか
ら成るAPP1マーカ310と、圧縮画像データ220
とから構成される。APP1マーカ310のタグ情報
は、撮影日時や画像の大きさ、Exifバージョン等、
圧縮画像データに関する関連を有している。Exif生
成手段140は、JFIFの画像ファイル200のAP
P0マーカ210からExifの画像ファイル300の
APP1マーカ310のタグ情報に適用できるデータ2
11、212、213を抽出し、これを流用する。それ
以外のデータはデフォルト値あるいは動作に支障がない
値を設定し、APP1マーカ310のタグ情報の生成を
行なう。続いて、圧縮画像データ220より再生された
再生原画像データ400からサムネイル生成手段130
の生成したサムネイル320及びヘッダと結合し、AP
P1マーカ310を生成する。さらに、JFIFの画像
ファイル200の圧縮画像データ220を取り込み、こ
れと結合し、Exifの画像ファイル300を生成す
る。
The Exif generation means 140 obtains the APP0 marker and the compressed image data via the image file input means 110, obtains the thumbnail from the thumbnail generation means 130, and generates an Exif image file. This will be described with reference to FIG. FIG. 2 is a configuration diagram of a converted image file in the image file format conversion apparatus according to one embodiment of the present invention. The JFIF image file 200 includes an APP0 marker 210 and compressed image data 220. On the other hand, an Exif image file 300 includes an APP1 marker 310 including a header, tag information, and a thumbnail, and a compressed image data 220.
It is composed of Tag information of the APP1 marker 310 includes shooting date and time, image size, Exif version, and the like.
It has an association with the compressed image data. The Exif generation unit 140 determines the AP of the JFIF image file 200
Data 2 applicable to the tag information of the APP1 marker 310 of the Exif image file 300 from the P0 marker 210
11, 212, and 213 are extracted and used. For other data, a default value or a value that does not hinder the operation is set, and tag information of the APP1 marker 310 is generated. Subsequently, the thumbnail generation means 130 is used to convert the reproduced original image data 400 reproduced from the compressed image data 220
Is combined with the thumbnail 320 and the header generated by
A P1 marker 310 is generated. Further, the compressed image data 220 of the JFIF image file 200 is fetched and combined with the compressed image data 220 to generate the Exif image file 300.

【0020】図1に戻って説明する。画像ファイル出力
手段150は、Exif生成手段140の生成したEx
ifの画像ファイルを外部端子経由で外部に、あるい
は、装置内部に設けられた記憶手段160に出力する。
Returning to FIG. The image file output unit 150 outputs the Exif generated by the Exif generation unit 140.
The image file is output to an external device via an external terminal or to a storage unit 160 provided inside the apparatus.

【0021】記憶手段160は、画像ファイル出力手段
150の制御に従って、生成されたExifの画像ファ
イルを記憶する。このような構成のフォーマット変換装
置100の動作について説明する。
The storage means 160 stores the generated Exif image file under the control of the image file output means 150. The operation of the format conversion apparatus 100 having such a configuration will be described.

【0022】画像ファイル入力手段110は、APP0
マーカと圧縮画像データとから構成されるJFIFの画
像ファイルを入力し、原画像再生手段120へ圧縮画像
データを出力する。原画像再生手段120は、圧縮画像
データから原画像データを再生する。サムネイル生成手
段130は、再生された再生原画像データからサムネイ
ルを生成し、Exif生成手段140へ出力する。Ex
if生成手段140は、APP0マーカ、圧縮画像デー
タ、及びサムネイルを入力し、APP0マーカからEx
ifのAPP1に適用できるデータを抽出してタグ情報
を生成し、サムネイル及びヘッダと結合してAPP1マ
ーカを生成する。さらに、APP1マーカと圧縮画像デ
ータを結合し、Exifの画像ファイルを生成して画像
ファイル出力手段150へ送る。画像ファイル出力手段
150は、Exifの画像ファイルを外部出力するか、
あるいは記憶手段160へ記憶する。
The image file input means 110 receives the APP0
A JFIF image file composed of a marker and compressed image data is input, and the compressed image data is output to the original image reproducing means 120. The original image reproducing means 120 reproduces the original image data from the compressed image data. The thumbnail generating unit 130 generates a thumbnail from the reproduced original image data and outputs the thumbnail to the Exif generating unit 140. Ex
The if generation unit 140 inputs the APP0 marker, the compressed image data, and the thumbnail, and outputs
Data applicable to APP1 of if is extracted to generate tag information, and combined with a thumbnail and a header to generate an APP1 marker. Further, the APP1 marker and the compressed image data are combined to generate an Exif image file and send it to the image file output unit 150. The image file output unit 150 outputs an Exif image file to the outside,
Alternatively, it is stored in the storage means 160.

【0023】次に、画像ファイルのフォーマット変換方
法について説明する。図3は、本発明の一実施の形態で
ある画像ファイルのフォーマット変換方法のフローチャ
ートである。
Next, a format conversion method of an image file will be described. FIG. 3 is a flowchart of an image file format conversion method according to an embodiment of the present invention.

【0024】フォーマット変換処理を開始すると(S1
0)、JFIFの画像ファイルから圧縮画像データの抽
出を行なう(S11)。次に、抽出された圧縮画像デー
タに逆変換を施して原画像データの再生を行なう(S1
2)。次に、再生された原画像データからサムネイルを
生成する(S13)。続いて、JFIFの画像ファイル
のAPP0マーカからExifのタグ情報に適用できる
データを抽出し、これを流用する。それ以外のデータは
デフォルト値あるいは動作に支障がない値を設定してタ
グ情報の作成を行なう(S14)。続いて、ファイルの
結合(S15)を行なってExifの画像ファイルを作
成する。ファイルの結合では、まず、生成されたサムネ
イルとタグ情報、さらにヘッダを結合してAPP1マー
カの生成を行なう。次に、JFIFの画像ファイルの圧
縮画像データを抽出し、APP1マーカと結合して、E
xifの画像ファイルを作成する。その後、処理を終了
する(S16)。
When the format conversion process is started (S1)
0), the compressed image data is extracted from the JFIF image file (S11). Next, the original compressed image data is reproduced by performing inverse conversion on the extracted compressed image data (S1).
2). Next, a thumbnail is generated from the reproduced original image data (S13). Subsequently, data applicable to the Exif tag information is extracted from the APP0 marker of the JFIF image file, and is used. For other data, tag information is created by setting a default value or a value that does not interfere with the operation (S14). Subsequently, the files are combined (S15) to create an Exif image file. In combining files, first, the generated thumbnail, tag information, and a header are combined to generate an APP1 marker. Next, the compressed image data of the JFIF image file is extracted, combined with the APP1 marker, and
Create an xif image file. Thereafter, the process ends (S16).

【0025】このように、JFIFの圧縮画像データか
ら原画像を再生してサムネイルを生成し、タグ情報に流
用できる情報を使用してAPP1マーカを生成すること
により、JFIFからExifへの変換を行なうことが
できる。このため、過去にJFIFで記録された画像を
Exifに対応する機器で再生することができる。ま
た、JFIFの圧縮画像データをExifの画像ファイ
ルへ流用するため、本画像の画像劣化が生じない。
As described above, the original image is reproduced from the JFIF compressed image data to generate a thumbnail, and the APP1 marker is generated using the information that can be used for the tag information, thereby performing the conversion from JFIF to Exif. be able to. For this reason, an image recorded in the past by JFIF can be reproduced by a device compatible with Exif. In addition, since the JFIF compressed image data is used for the Exif image file, the main image does not deteriorate.

【0026】上記の説明では、JFIFの画像ファイル
の圧縮画像データをExifに流用するとしたが、再生
された原画像データから新たに圧縮画像データを作成す
ることもできる。このような、フォーマット変換装置に
ついて、図4を用いて説明する。図4は、本発明の他の
実施の形態である画像ファイルのフォーマット変換装置
の構成図である。図1と同じものについては同じ番号を
付し、説明は省略する。
In the above description, the compressed image data of the JFIF image file is used for Exif. However, new compressed image data can be created from the reproduced original image data. Such a format conversion device will be described with reference to FIG. FIG. 4 is a configuration diagram of an image file format conversion apparatus according to another embodiment of the present invention. The same components as those in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted.

【0027】本発明に係る第2の画像ファイルのフォー
マット変換装置101は、JFIFの画像ファイルを入
力する画像ファイル入力手段111、入力した画像ファ
イルから原画像を再生する原画像再生手段121、Ex
ifの画像ファイルを生成するExif生成手段14
1、生成されたExifの画像ファイルを外部に出力す
る画像ファイル出力手段150、及び生成された画像フ
ァイルを記憶する記憶手段160とから構成される。
The second image file format converter 101 according to the present invention comprises: an image file input means 111 for inputting a JFIF image file; an original image reproducing means 121 for reproducing an original image from the input image file;
Exif generating means 14 for generating an if image file
1. An image file output unit 150 for outputting the generated Exif image file to the outside, and a storage unit 160 for storing the generated image file.

【0028】画像ファイル入力手段111は、JFIF
の画像ファイルを外部から入力し、圧縮画像データを原
画像再生手段121へ送る。また、Exif生成手段1
41に対して、APP0マーカを出力する。
The image file input means 111 has a JFIF
The compressed image data is sent to the original image reproducing means 121. Exif generating means 1
An APP0 marker is output to 41.

【0029】原画像再生手段121は、JFIFの画像
ファイルから抽出された圧縮画像データを伸張し、原画
像データを再生する。再生された再生原画像データは、
Exif生成手段141へ出力する。
The original image reproducing means 121 expands the compressed image data extracted from the JFIF image file and reproduces the original image data. The reproduced original image data is
Output to Exif generating means 141.

【0030】Exif生成手段141は、画像ファイル
入力手段111からAPP0マーカ、及び原画像再生手
段121から再生原画像データを取得し、Exifの画
像ファイルを生成する。図5を用いて説明する。図5
は、本発明の他の実施の形態である画像ファイルのフォ
ーマット変換装置における変換画像ファイルの構成図で
ある。図2と同じものは同じ番号を付し、説明は省略す
る。Exif生成手段141は、原画像再生手段121
の生成した再生原画像データ400に基づきタグ情報と
サムネイル312を生成してAPP1マーカ311を作
成するとともに、再生原画像データ400に変換を施し
て圧縮画像データ320を生成する。このようにして生
成されたAPP1マーカ311と圧縮画像データ320
とを結合し、Exif画像ファイル301を編集する。
続いて、JFIF画像ファイル200のAPP0マーカ
210のうち、APP1マーカ311に適用可能なデー
タ211、212、213をAPP1マーカ311のタ
グ情報に反映する。
The Exif generating means 141 acquires the APP0 marker from the image file input means 111 and the reproduced original image data from the original image reproducing means 121, and generates an Exif image file. This will be described with reference to FIG. FIG.
FIG. 11 is a configuration diagram of a converted image file in an image file format conversion apparatus according to another embodiment of the present invention. The same components as those in FIG. 2 are denoted by the same reference numerals, and description thereof is omitted. The Exif generation unit 141 includes the original image reproduction unit 121
The tag information and the thumbnail 312 are generated on the basis of the reproduced original image data 400 generated in the step (a), the APP1 marker 311 is created, and the reproduced original image data 400 is converted to generate the compressed image data 320. The APP1 marker 311 thus generated and the compressed image data 320
And edits the Exif image file 301.
Subsequently, the data 211, 212, and 213 applicable to the APP1 marker 311 among the APP0 markers 210 of the JFIF image file 200 are reflected in the tag information of the APP1 marker 311.

【0031】このような構成のフォーマット変換装置1
01の動作について、図4に戻って説明する。画像ファ
イル入力手段111は、APP0マーカと圧縮画像デー
タとから構成されるJFIFの画像ファイルを入力し、
原画像再生手段121へ圧縮画像データを出力する。原
画像再生手段121は、圧縮画像データから原画像デー
タを再生し、Exif生成手段141へ出力する。Ex
if生成手段141は、APP0マーカ、及び再生原画
像データを入力し、再生原画像データからサムネイルと
圧縮画像データとを生成する。次に、タグ情報、ヘッダ
を設定して、生成されたサムネイルと結合してAPP1
マーカを生成する。さらに、生成された圧縮画像データ
とAPP1マーカとを結合し、Exifの画像ファイル
を編集する。続いて、APP0マーカのデータをAPP
1マーカのタグ情報に反映し、Exifの画像ファイル
を生成し、これを画像ファイル出力手段150へ送る。
画像ファイル出力手段150は、Exifの画像ファイ
ルを外部出力するか、あるいは記憶手段160へ記憶す
る。
The format conversion apparatus 1 having such a configuration
Operation 01 will be described again with reference to FIG. The image file input unit 111 inputs a JFIF image file composed of an APP0 marker and compressed image data,
The compressed image data is output to the original image reproducing means 121. The original image reproducing means 121 reproduces the original image data from the compressed image data, and outputs the reproduced image data to the Exif generating means 141. Ex
The if generation unit 141 receives the APP0 marker and the reproduced original image data, and generates a thumbnail and compressed image data from the reproduced original image data. Next, tag information and a header are set, and combined with the generated thumbnail, APP1
Generate a marker. Further, the generated compressed image data is combined with the APP1 marker, and the Exif image file is edited. Then, the APP0 marker data is transferred to APP
An Exif image file is generated by reflecting it in the tag information of one marker, and this is sent to the image file output means 150.
The image file output unit 150 outputs the Exif image file to the outside or stores it in the storage unit 160.

【0032】次に、画像ファイルのフォーマット変換方
法について説明する。図6は、本発明の一実施の形態で
ある画像ファイルのフォーマット変換方法のフローチャ
ートである。
Next, a method for converting the format of an image file will be described. FIG. 6 is a flowchart of an image file format conversion method according to an embodiment of the present invention.

【0033】フォーマット変換処理を開始すると(S2
0)、JFIFの画像ファイルから圧縮画像データの抽
出を行なう(S21)。次に、抽出された圧縮画像デー
タに逆変換を施して原画像データの再生を行なう(S2
2)。続いて、再生された原画像データからExifの
画像ファイルの生成を行なう(S23)。原画像データ
からサムネイルを生成し、デフォルト値あるいは動作に
支障がない値を設定したタグ情報及びヘッダと結合し、
APP1マーカを作成する。次に、再生された原画像デ
ータを圧縮して圧縮画像データを生成し、APP1マー
カと結合する。次に、JFIFの画像ファイルのAPP
0マーカから、生成されたAPP1マーカのタグ情報に
適用できるデータ抽出し、これを用いてAPP1マーカ
のタグ情報の置き換えを行なう(S24)。その後、処
理を終了する(S25)。
When the format conversion process is started (S2
0), the compressed image data is extracted from the JFIF image file (S21). Next, the original compressed image data is reproduced by performing inverse conversion on the extracted compressed image data (S2).
2). Subsequently, an Exif image file is generated from the reproduced original image data (S23). Generate a thumbnail from the original image data, combine it with the tag information and header set with default values or values that do not interfere with operation,
Create an APP1 marker. Next, the reproduced original image data is compressed to generate compressed image data, which is combined with the APP1 marker. Next, JFIF image file APP
Data applicable to the tag information of the generated APP1 marker is extracted from the 0 marker, and the tag information of the APP1 marker is replaced using the extracted data (S24). Thereafter, the process ends (S25).

【0034】このように、JFIFの圧縮画像データか
ら原画像を再生し、再生原画像データからExifの画
像ファイルを生成することにより、Exifへの変換を
行なうことができる。このため、過去にJFIFで記録
された画像をExifに対応する機器で再生することが
できる。また、圧縮画像データから再生原画像データを
作成し、再生原画像データからExifの画像ファイル
を生成するため、撮影あるいは外部から取り込んだ原画
像データからExifを作成するExif対応機器に元
々搭載されている機能を流用することができる。このた
め、フォーマット変換のためのプロセスが簡単になる。
As described above, the original image is reproduced from the JFIF compressed image data, and the Exif image file is generated from the reproduced original image data, whereby the conversion to Exif can be performed. For this reason, an image recorded in the past by JFIF can be reproduced by a device compatible with Exif. Also, in order to generate reproduced original image data from the compressed image data and generate an Exif image file from the reproduced original image data, it is originally installed in an Exif-compatible device that generates Exif from original image data captured or taken from outside. Functions can be diverted. This simplifies the process for format conversion.

【0035】なお、上記の処理機能は、コンピュータに
よって実現することができる。その場合、画像ファイル
のフォーマット変換装置が有すべき機能の処理内容は、
コンピュータで読み取り可能な記録媒体に記録されたプ
ログラムに記述しておく。そして、このプログラムをコ
ンピュータで実行することにより、上記処理がコンピュ
ータで実現される。コンピュータで読み取り可能な記録
媒体としては、磁気記録装置や半導体メモリ等がある。
市場に流通させる場合には、CD−ROM(Compact Dis
c Read Only Memory)やフロッピーディスク等の可搬型
記録媒体にプログラムを格納して流通させたり、ネット
ワークを介して接続されたコンピュータの記憶装置に格
納しておき、ネットワークを通じて他のコンピュータに
転送することもできる。コンピュータで実行する際に
は、コンピュータ内のハードディスク装置等にプログラ
ムを格納しておき、メインメモリにロードして実行す
る。
The above processing functions can be realized by a computer. In this case, the processing contents of the functions that the image file format conversion device should have are:
It is described in a program recorded on a computer-readable recording medium. Then, by executing this program by a computer, the above processing is realized by the computer. Computer-readable recording media include magnetic recording devices and semiconductor memories.
When distributing to the market, CD-ROM (Compact Dis
c Read Only Memory) or store the program on a portable recording medium such as a floppy disk and distribute it, or store it in a storage device of a computer connected via a network and transfer it to another computer via the network. Can also. When the program is executed by the computer, the program is stored in a hard disk device or the like in the computer, and is loaded into the main memory and executed.

【0036】[0036]

【発明の効果】以上説明したように本発明のフォーマッ
ト変換装置では、JFIFで作成された画像ファイルか
ら、圧縮画像データを抽出して伸張し、原画像データを
再生し、サムネイルを生成する。さらに、JFIFで作
成されたデジタル画像ファイルからExifに適用する
ことができる情報を抽出し、これらを用いてExifの
画像ファイルを生成する。
As described above, in the format conversion apparatus of the present invention, compressed image data is extracted and decompressed from an image file created by JFIF, original image data is reproduced, and thumbnails are generated. Further, information applicable to Exif is extracted from a digital image file created by JFIF, and an Exif image file is generated using the extracted information.

【0037】このように、過去にJFIFで作成された
圧縮画像ファイルをExifに変換することができるた
め、新しいExif対応の機器でもJFIFで記録され
た画像ファイルを再生することができる。また、変換に
伴う画質の劣化が発生しない。
As described above, since a compressed image file created in the past by JFIF can be converted to Exif, an image file recorded in JFIF can be reproduced even by a new Exif-compatible device. Further, the image quality does not deteriorate due to the conversion.

【0038】また、本発明のフォーマット変換方法で
は、まず、JFIFで作成された画像ファイルから圧縮
画像データを抽出して伸張し、原画像データを再生す
る。再生された原画像データからサムネイルを生成する
とともに、JFIFで作成された画像ファイルからEx
ifに適用できる情報を流用し、画像ファイルを生成す
る。
In the format conversion method of the present invention, first, compressed image data is extracted and decompressed from an image file created by JFIF, and the original image data is reproduced. A thumbnail is generated from the reproduced original image data, and an Ex.
An image file is generated by diverting information applicable to if.

【0039】このように、JFIFの原画像データを再
生しサムネイルを生成するとともに、JFIFのデジタ
ル画像ファイルから流用できるものは流用してExif
に変換するため、変換に伴う画質の劣化が発生しない。
また、過去に作成されたJFIFの画像データをExi
f対応の機器で再生することが可能となる。
As described above, the JFIF original image data is reproduced to generate thumbnails, and those that can be diverted from JFIF digital image files are diverted to Exif.
, The image quality does not deteriorate due to the conversion.
In addition, JFIF image data created in the past is used for Exi
It is possible to play back on a device that supports f.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施の形態である画像ファイルのフ
ォーマット変換装置の構成図である。
FIG. 1 is a configuration diagram of an image file format conversion apparatus according to an embodiment of the present invention.

【図2】本発明の一実施の形態である画像ファイルのフ
ォーマット変換装置における変換画像ファイルの構成図
である。
FIG. 2 is a configuration diagram of a converted image file in an image file format conversion apparatus according to an embodiment of the present invention.

【図3】本発明の一実施の形態である画像ファイルのフ
ォーマット変換方法のフローチャートである。
FIG. 3 is a flowchart of an image file format conversion method according to an embodiment of the present invention.

【図4】本発明の他の実施の形態である画像ファイルの
フォーマット変換装置の構成図である。
FIG. 4 is a configuration diagram of an image file format conversion apparatus according to another embodiment of the present invention.

【図5】本発明の他の実施の形態である画像ファイルの
フォーマット変換装置における変換画像ファイルの構成
図である。
FIG. 5 is a configuration diagram of a converted image file in an image file format conversion apparatus according to another embodiment of the present invention.

【図6】本発明の一実施の形態である画像ファイルのフ
ォーマット変換方法のフローチャートである。
FIG. 6 is a flowchart of an image file format conversion method according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

100・・・フォーマット変換装置、110・・・画像ファイ
ル入力手段、120・・・原画像再生手段、130・・・サム
ネイル生成手段、140・・・Exif生成手段、150・
・・画像ファイル出力手段、160・・・記憶手段
100 ... format conversion device, 110 ... image file input means, 120 ... original image reproduction means, 130 ... thumbnail generation means, 140 ... Exif generation means, 150
..Image file output means, 160 storage means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 圧縮画像データとその関連情報とから構
成されるJFIF(JPEG File Interchange Format)の
画像ファイルをExifに変換する画像ファイルのフォ
ーマット変換装置において、 前記JFIFの画像ファイルから前記圧縮画像データを
抽出して伸張し、前記圧縮画像データの原画像データを
再生する原画像再生手段と、 前記再生された原画像データのサムネイルを生成するサ
ムネイル生成手段と、 前記JFIFの画像ファイルからExifに適用可能な
情報を抽出し、前記サムネイル及び前記適用可能な情報
とを用いてExifのデジタル画像ファイルを生成する
Exif生成手段と、 を有することを特徴とする画像ファイルのフォーマット
変換装置。
1. An image file format converter for converting a JFIF (JPEG File Interchange Format) image file composed of compressed image data and related information into Exif, comprising: converting the JFIF image file to the compressed image data An original image reproducing means for extracting and decompressing the original image data of the compressed image data, a thumbnail generating means for generating a thumbnail of the reproduced original image data, and applying to the Exif from the JFIF image file Exif generation means for extracting possible information and generating an Exif digital image file using the thumbnail and the applicable information. An image file format conversion apparatus.
【請求項2】 前記Exif生成手段は、前記JFIF
の圧縮画像ファイルの関連情報から前記Exifに適用
可能な情報を抽出し、これを用いて前記Exifの圧縮
画像データ関連情報を生成し、前記Exifの圧縮画像
ファイルの関連情報と前記サムネイルと前記JFIFの
圧縮画像データとを結合して前記Exifの画像ファイ
ルを生成することを特徴とする請求項1記載の画像ファ
イルのフォーマット変換装置。
2. The Exif generating means according to claim 1, wherein
The information applicable to the Exif is extracted from the related information of the compressed image file, and the Exif compressed image data related information is generated using the extracted information. The related information of the Exif compressed image file, the thumbnail, and the JFIF The image file format conversion apparatus according to claim 1, wherein the Exif image file is generated by combining the compressed image data with the compressed image data.
【請求項3】 前記Exif生成手段は、前記JFIF
の画像ファイルを構成する圧縮画像データ関連情報から
前記Exifに適用可能な情報を抽出し、これを用いて
前記Exifの圧縮画像データ関連情報を生成するとと
もに、前記再生された原画像データに圧縮処理を施して
再生原画像の圧縮画像データを生成し、前記Exifの
圧縮画像データ関連情報と前記サムネイルと前記再生原
画像の圧縮画像データとを結合して前記Exifの画像
ファイルを生成することを特徴とする請求項1記載の画
像ファイルのフォーマット変換装置。
3. The Exif generating means, wherein
The information applicable to the Exif is extracted from the compressed image data-related information constituting the image file, and the Exif-compressed image data-related information is generated using the extracted information. And generating compressed image data of the reproduced original image, and combining the compressed image data related information of the Exif, the thumbnail, and the compressed image data of the reproduced original image to generate the Exif image file. 2. The image file format converter according to claim 1, wherein:
【請求項4】 圧縮画像データとその関連情報とから構
成されるJFIFの画像ファイルをExifに変換する
画像ファイルのフォーマット変換方法において、 前記JFIFの関連情報から前記圧縮画像データを抽出
し、 前記圧縮画像データを伸張して原画像データを再生し、 前記再生された原画像データのサムネイルを生成し、 前記JFIFの画像ファイルからExifに適用可能な
情報を抽出してExifの関連情報であるタグ情報を生
成し、 前記サムネイル、前記タグ情報、及び前記JFIFの画
像ファイルの圧縮画像データとを編集してExifの画
像ファイルを生成する手順を有することを特徴とする画
像ファイルのフォーマット変換方法。
4. A format conversion method of an image file for converting a JFIF image file composed of compressed image data and related information into Exif, wherein the compressed image data is extracted from the JFIF related information, Decompress the image data to reproduce the original image data, generate a thumbnail of the reproduced original image data, extract information applicable to Exif from the JFIF image file, and tag information that is related to Exif Generating an Exif image file by editing the thumbnail, the tag information, and the compressed image data of the JFIF image file.
【請求項5】 圧縮画像データとその関連情報とから構
成されるJFIFの画像ファイルをExifに変換する
画像ファイルのフォーマット変換方法において、 前記JFIFの画像ファイルから前記圧縮画像データを
抽出し、 前記圧縮画像データを伸張して原画像データを再生し、 前記再生された原画像データのサムネイル及び圧縮画像
データを生成して前記Exifの画像ファイルを編集
し、 前記JFIFの関連情報からExifに適用可能な情報
を抽出して前記編集されたExifの画像ファイルの対
応する情報と置き換えを行なってExifの画像ファイ
ルを生成する手順を有することを特徴とする画像ファイ
ルのフォーマット変換方法。
5. An image file format conversion method for converting a JFIF image file composed of compressed image data and related information into Exif, comprising: extracting the compressed image data from the JFIF image file; Decompress the image data to reproduce the original image data, generate thumbnails and compressed image data of the reproduced original image data, edit the Exif image file, and apply Exif from the JFIF related information. A method for converting the format of an image file, comprising extracting information, replacing the information with the corresponding information of the edited Exif image file, and generating an Exif image file.
JP2001015333A 2001-01-24 2001-01-24 Device and method for converting image file format Pending JP2002218402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001015333A JP2002218402A (en) 2001-01-24 2001-01-24 Device and method for converting image file format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001015333A JP2002218402A (en) 2001-01-24 2001-01-24 Device and method for converting image file format

Publications (1)

Publication Number Publication Date
JP2002218402A true JP2002218402A (en) 2002-08-02

Family

ID=18881898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001015333A Pending JP2002218402A (en) 2001-01-24 2001-01-24 Device and method for converting image file format

Country Status (1)

Country Link
JP (1) JP2002218402A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100939436B1 (en) 2008-01-04 2010-01-28 에스케이 텔레콤주식회사 File formation method of stereo scopic, Method for displaying the stereo scopic and system thereof
CN111866517A (en) * 2020-07-23 2020-10-30 北京中指实证数据信息技术有限公司 Picture processing method and device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100939436B1 (en) 2008-01-04 2010-01-28 에스케이 텔레콤주식회사 File formation method of stereo scopic, Method for displaying the stereo scopic and system thereof
CN111866517A (en) * 2020-07-23 2020-10-30 北京中指实证数据信息技术有限公司 Picture processing method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN100562085C (en) Tape deck and method, regenerating unit and method and program
JP4416606B2 (en) Display control apparatus, display control method, program, and storage medium
US8854479B2 (en) Information processing apparatus and method
JP2007013574A (en) File access means, specific image file reproduction method, and camera device capable of reproducing the image file
US20120054370A1 (en) Data file transfer apparatus and control method of the data file transfer apparatus
US20040263644A1 (en) Electronic apparatus, directory generating method, directory reading method and computer program
WO2002023898A1 (en) Image recording/reproducing device and method, disk, and image reproducing device
JP2009118215A (en) Imaging apparatus
JP2005327257A (en) File management method and apparatus for controlling asset in multimedia appliance and information recording medium therefor
JPWO2004086760A1 (en) Data processing device
JPH09135412A (en) Recording and reproducing device
CN101482863A (en) Interest point information storage method
JP2003036200A (en) Document processing system and method, client terminal, server device, program and storage medium
JP2002218402A (en) Device and method for converting image file format
JPH08147952A (en) Recording and reproducing device
JP2007166553A (en) Moving image processing apparatus and moving image processing method
JP2002290880A (en) Image processor, its control method and computer readable memory
JP4636592B2 (en) Video camera
JP4277291B2 (en) Image capturing device and image data copying method
JP4225124B2 (en) Data processing method and system
JP4693735B2 (en) Still image file recording and editing device
JP3009931B2 (en) Digital electronic still camera
JP4782212B2 (en) Shooting device, copy method of shooting data
JP2005184469A (en) Digital still camera
JP4666064B2 (en) Image data recording apparatus and image data recording method