KR100814079B1 - Method for converting html file to flash image - Google Patents
Method for converting html file to flash image Download PDFInfo
- Publication number
- KR100814079B1 KR100814079B1 KR1020070051590A KR20070051590A KR100814079B1 KR 100814079 B1 KR100814079 B1 KR 100814079B1 KR 1020070051590 A KR1020070051590 A KR 1020070051590A KR 20070051590 A KR20070051590 A KR 20070051590A KR 100814079 B1 KR100814079 B1 KR 100814079B1
- Authority
- KR
- South Korea
- Prior art keywords
- image
- flash
- page
- background
- information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Information Transfer Between Computers (AREA)
- Digital Computer Display Output (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
도 1은 본 발명의 파일 변환 장치의 구성을 나타내는 구성도.BRIEF DESCRIPTION OF THE DRAWINGS The block diagram which shows the structure of the file conversion apparatus of this invention.
도 2a는 컨텐츠를 글자와 이미지로 구분한 모습을 보여주는 도면.Figure 2a is a view showing a state in which the content is divided into letters and images.
도 2b는 도 2a를 블럭화한 모습을 보여주는 도면.FIG. 2B is a view showing a block diagram of FIG. 2A; FIG.
도 2c는 도 2b의 블럭들을 페이지 단위로 구분한 모습을 보여주는 도면.FIG. 2C is a diagram illustrating a state in which the blocks of FIG. 2B are divided into pages. FIG.
도 3은 페이지별 레이어들의 모습을 전체적으로 보여주는 도면.3 is a view showing an overall view of the layers of each page.
도 4는 본 발명에 따른 파일 변환 방법을 설명하기 위한 순서도.4 is a flowchart illustrating a file conversion method according to the present invention.
도 5는 레이어들이 삽입되는 모습 및 순서를 보여주는 도면.5 is a view showing the appearance and order in which layers are inserted.
도 6은 완성된 플래시 페이지들의 모습을 보여주는 도면.6 shows the appearance of completed flash pages.
도 7은 이미지 레이어를 생성하는 과정을 보다 상세하게 설명하기 위한 순서도.7 is a flowchart illustrating a process of generating an image layer in more detail.
도 8은 애니메이션 GIF 이미지를 SWF 이미지로 변환하는 과정을 보여주는 도면.8 is a diagram illustrating a process of converting an animated GIF image into a SWF image.
도 9는 SWF 이미지의 위치를 지정하는 모습을 보여주는 도면.9 is a view showing a position of a SWF image.
< 도면의 주요 부분에 대한 부호의 설명 ><Description of Symbols for Main Parts of Drawings>
10 : 메모리 20 : 배경 추출부10: memory 20: background extraction unit
30 : 컨텐츠 추출부 40 : 페이지 작성부30: content extraction unit 40: page creation unit
50 : 플래시 이미지 생성부50: flash image generator
본 발명은 파일 변환에 관한 것으로서, 보다 상세하게는 멀티미디어 데이터가 포함된 HTML(Hypertext Markup Language) 파일을 플래시(flash) 이미지로 변환하는 장치 및 방법에 관한 것이다.The present invention relates to file conversion, and more particularly, to an apparatus and method for converting a Hypertext Markup Language (HTML) file containing multimedia data into a flash image.
최근의 이동통신 단말기는 다양한 멀티미디어 기능이 접목되고 있으며, 그에 따라 기존의 단문 메시지 서비스에 그림이나 음악 파일들을 첨부하여 전송할 수 있는 멀티미디어 메시지 서비스(MMS:Multimedia Message Service)가 점차 보편화되고 있는 상황이다.Recently, a variety of multimedia functions are used in a mobile communication terminal, and accordingly, a multimedia message service (MMS) for attaching pictures or music files to an existing short message service and transmitting them is gradually becoming common.
이러한, 멀티미디어 메시지 서비스는 여러 가지 그림과 멜로디, 음성을 전달하는 향상된 단문 메시지 서비스 기능으로서, 기존의 SMS(Short Message Service)를 기반으로 하는 이동통신 단말기의 사용자 인터페이스(UI)를 그대로 활용하여 각 콘텐츠가 저장된 미디어 보관함에서 전송하고자 하는 콘텐츠를 선택하여 첨부하는 방식을 사용한다.The multimedia message service is an enhanced short message service function that delivers various pictures, melodies, and voices, and utilizes a user interface (UI) of a mobile communication terminal based on an existing short message service (SMS). Selects the content you want to transfer from the stored media library and attaches it.
그런데, 멀티미디어 서비스를 이용하기 위해 기존의 HTML로 작성된 파일에 다양한 멀티미디어 데이터를 삽입하게 되면, HTML 파일과 멀티미디어 데이터를 함께 관리하고 이를 송수신해야 하는 불편함이 따른다. 즉, HTML 파일에 다른 멀티 미디어 데이터가 삽입된 경우 멀티미디어 데이터와 이것을 연결하는 링크를 포함하는 HTML 파일은 별개의 파일로 존재하기 때문에 HTML 파일과 멀티미디어 데이터를 별개 파일로 따로 관리하고 송수신해야 한다.However, when a variety of multimedia data is inserted into a file made of HTML in order to use a multimedia service, it is inconvenient to manage and transmit HTML files and multimedia data together. That is, when other multimedia data is inserted into the HTML file, since the HTML file including the multimedia data and the link connecting the same exists as a separate file, the HTML file and the multimedia data must be managed and transmitted separately as separate files.
더욱이, 사용자의 단말기(이동통신단말기)에 해당 멀티미디어 서비스를 재생시킬 수 있는 어플리케이션이 설치되지 않은 경우 단말기는 해당 멀티미디어 데이터를 처리할 수 없어 화면에서 해당 멀티미디어가 삽입된 영역이 빈박스로 보여지거나 대체 글자로만 보여지는 문제가 발생하게 된다.In addition, if an application for reproducing the multimedia service is not installed in the user's terminal (mobile communication terminal), the terminal cannot process the multimedia data, and thus the area where the multimedia is inserted is displayed or replaced with a blank box on the screen. Problems that only appear in letters occur.
따라서, 상술한 문제를 해결하기 위한 본 발명의 목적은 다양한 멀티미디어 데이터를 포함하는 HTML 파일을 하나의 플래시 이미지로 변환하여 그 플래시 이미지를 송수신함으로써 파일 관리를 간소화하고 보다 다양한 플래시 이미지를 생성할 수 있도록 하는데 있다.Accordingly, an object of the present invention for solving the above problems is to convert an HTML file containing various multimedia data into a single flash image and to transmit and receive the flash image to simplify file management and to generate more various flash images. It is.
위와 같은 목적을 달성하기 위한 본 발명의 파일 변환 장치는 HTML 태그를 이용하여 HTML 파일에서 배경 정보를 추출하는 배경 추출부; HTML 태그를 이용하여 상기 HTML 파일에서 컨텐츠 정보를 추출하고, 추출된 상기 컨텐츠 정보를 이용하여 상기 컨텐츠들에 대한 구조 정보를 생성하는 컨텐츠 추출부; 상기 구조 정보에 따라 컨텐츠의 전체 사이즈가 기 설정된 사이즈보다 큰 경우 상기 컨텐츠를 상기 기 설정된 사이즈의 페이지 단위로 구분하고, 각 페이지별로 해당 페이지에 포함된 상기 컨텐츠 및 상기 배경 정보를 이용하여 플래시 페이지들을 작성하는 페이지 작성부; 및 상기 플래시 페이지들을 플래시 이미지의 프레임에 삽입하여 플래시 이미지를 생성하는 플래시 이미지 생성부를 구비한다.File conversion apparatus of the present invention for achieving the above object is a background extraction unit for extracting the background information from the HTML file using the HTML tag; A content extraction unit which extracts content information from the HTML file by using an HTML tag and generates structure information about the content by using the extracted content information; When the total size of the content is larger than the preset size according to the structure information, the content is divided into page units of the preset size, and flash pages are stored using the contents and the background information included in the corresponding page for each page. A page creation unit to create; And a flash image generator for inserting the flash pages into a frame of the flash image to generate a flash image.
본 발명에 따른 HTML 파일을 플래시 이미지로 변환하는 방법은 HTML 파일에서 배경 정보를 추출하는 제 1 단계; 상기 HTML 파일에서 컨텐츠 정보를 추출하여 컨텐츠의 전체 사이즈가 기 설정된 사이즈보다 큰 경우 상기 컨텐츠를 상기 기 설정된 사이즈의 페이지 단위로 구분하는 제 2 단계; 상기 구분된 각 페이지별로 해당 페이지에 포함된 상기 컨텐츠 및 상기 배경 정보를 이용하여 플래시 페이지들을 작성하는 제 3 단계; 및 상기 플래시 페이지들을 결합시켜 플래시 이미지를 생성하는 제 4 단계를 포함한다.A method for converting an HTML file into a flash image according to the present invention includes a first step of extracting background information from an HTML file; Extracting content information from the HTML file and dividing the content into page units of the preset size when the total size of the content is larger than a preset size; Creating flash pages using the contents and the background information included in the corresponding page for each divided page; And a fourth step of combining the flash pages to generate a flash image.
이하, 첨부된 도면들을 참조하여 본 발명의 바람직한 실시예를 보다 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.
도 1은 본 발명의 파일 변환 장치의 구성을 나타내는 구성도이다.1 is a configuration diagram showing the configuration of the file conversion apparatus of the present invention.
도 1의 파일 변환 장치는 메모리(10), 배경 추출부(20), 컨텐츠 추출부(30), 페이지 작성부(40) 및 플래시 이미지 생성부(50)를 구비한다.The file conversion apparatus of FIG. 1 includes a
메모리(10)는 멀티미디어 데이터가 포함된 HTML 파일, 본 발명에 따른 파일 변환 과정에서 임시로 생성되는 각종 데이터, 및 HTML 파일이 변환된 플래시 이미지를 저장한다. 이때, 상술한 데이터는 그 특성에 따라 물리적으로 분리시켜 각기 서로 다른 메모리에 저장되도록 할 수도 있으나 본 발명에서는 설명의 편의를 위해 하나의 메모리(10)에 저장되는 것으로 한다.The
배경 추출부(20)는 메모리(10)에 저장된 변환 대상이 되는 HTML 파일에서 배경 정보(배경색, 배경 이미지 및 배경 사운드에 대한 정보)를 추출하여 메모리(10)에 임시 저장한다. 즉, 배경 추출부(20)는 HTML 파일에서 배경색과 관련된 태크(bgcolor=" "), 배경 이미지와 관련된 태그(background=" ") 및 배경 사운드와 관련된 태그(bgsound src=" ")를 찾아낸 후 각 태크에서 " " 안에 있는 정보를 추출하여 이들을 각각 배경색 정보, 배경 이미지 정보 및 배경 사운드 정보로 하여 메모리(10)에 임시 저장한다.The
컨텐츠 추출부(30)는 메모리(10)에 저장된 변환 대상이 되는 HTML 파일에 포함된 컨텐츠들(예컨대, 표시 글자와 이미지)에 대한 정보를 추출하여 그 컨텐츠들이 HTML 형식에 의해 화면에 실제 표시되는 구조(형태)를 알려주는 구조 정보를 생성한다. 즉, 컨텐츠 추출부(30)는 HTML 파일의 본문(<body>, </body>)에 쓰여진 표시 글자들(실제 화면에 표시되는 글자들), 그 표시 글자들과 관련된 태그들(예컨대, <p> </p>, <div> </div>, <br>, <big> </big>, <small> </small>, <i> </i>, <strong> </strong> 등) 및 이미지에 대한 태그(<img=" ">)를 이용해 해당 HTML 파일에서 실제 화면에 표시되는 글자들과 이미지들에 대한 정보를 추출하여 메모리(10)에 임시 저장한다. 그리고, 컨텐츠 추출부(30)는 추출된 표시 글자들(이하, 그냥 글자라 하면 표시 글자를 의미함)과 이미지들을 도 2a에서와 같이 각 라인별로 구분하고 만약 동일한 라인에 글자와 이미지가 모두 포함되어 있는 경우에는 해당 라인을 글자 부분과 이미지 부분으로 다시 구분하여 도 2b와 같이 글자 부분과 이미지 부분을 블럭화한다. 도 2b에서 T1 ∼ T14는 추출된 표시 글자들의 위치 및 크기를 나타내는 블럭(텍스트 블럭)들이며, I1 ∼ I5는 추출된 이미지들의 위치 및 크기를 나타내는 블럭(이미지 블럭)들이다. 이러한 작성된 구조 정보는 페이지 작성부(40)로 전송된다.The
페이지 작성부(40)는 컨텐츠 추출부(30)로부터 구조 정보에 근거하여 컨텐츠들을 기 설정된 사이즈의 페이지 단위로 구분하고 구분된 페이지별로 각 페이지에 포함된 글자와 이미지 및 배경 추출부(20)에서 추출된 배경 정보들을 이용해 도 3과 같이 페이지별로 레이어들을 구성한 후 그 레이어들을 결합(삽입)시켜 각 플래시 페이지들을 작성한다. 즉, HTML 방식에 따라 컨텐츠의 내용들이 화면에 표시될 때는 HTML 파일에 포함된 컨텐츠의 양과 상관없이 모두 하나의 페이지로 표시되기 때문에 화면의 우측에 스크롤바가 구비되어 사용자가 해당 페이지를 스크롤할 수 있도록 구성된다. 그러나, 본 발명에서와 같이 컨텐츠의 내용들을 플래시 이미지로 표시하는 경우에는 플래시 이미지는 한 화면 내에 표시되어야 하기 때문에 그 플래시 이미지의 사이즈(가로, 세로의 길이)는 화면의 사이즈보다 작아야 한다. 따라서, HTML 파일에 포함된 컨텐츠의 양이 많아서 그 내용을 하나의 화면에 모두 표시하지 못하는 경우 즉, 도 2b의 글자와 이미지 구조의 전체 사이즈가 기 설정된 페이지 사이즈(예컨대, 화면 사이즈의 절반)보다 큰 경우 페이지 작성부(40)는 도 2b의 구조를 도 2c와 같이 기 설정된 페이지 단위로 구분한다. 그리고, 페이지 작성부(40)는 구분된 각 페이지별로 해당 페이지에 포함된 글자와 이미지 및 배경 추출부(20)에서 추출된 배경색, 배경 이미지, 배경 사운드로 각기 서로 다른 레이어들을 구성한 후 이들을 삽입시켜 플래시 페이지를 작성한다. 이러한 플래시 페이지 작성 방법은 보다 상세하게 후술된다.The
플래시 이미지 생성부(50)는 페이지 작성부(40)에 의해 작성된 플래시 페이지들을 플래시 이미지의 프레임에 순서대로 삽입함으로써 플래시 이미지를 생성한다. 즉, 플래시 이미지 생성부(50)는 각각의 페이지의 정보를 이용하여 대응되는 헤더(header)를 만든 후 해당 페이지를 대응되는 헤더 다음에 저장함으로써 플래시 이미지를 생성한다.The flash
도 4는 본 발명에 따른 파일 변환 방법을 설명하기 위한 순서도이다.4 is a flowchart illustrating a file conversion method according to the present invention.
배경 추출부(20)는 메모리(10)에 저장된 HTML 파일을 불러온 후 HTML 파일의 태그들 중에서 해당 HTML 파일의 배경색, 배경 이미지 및 배경 사운드와 관련된 태그들(bgcolor, background, bgsound)을 찾아내어 배경 정보(배경색, 배경 이미지, 배경 사운드에 대한 정보)를 추출해 내고 그 정보를 메모리(10)에 임시 저장한다(단계 410).The
예컨대, 메모리(10)에서 불러온 HTML 파일의 본문에 <body bgcolor="#ffffff" background="image/bgimg.png"> <bgsound src="BGM.mp3" loop="-1">의 태그가 포함되어 있는 경우, 배경 추출부(20)는 #ffffff를 배경색 정보로, bgimg.png를 배경 이미지 정보로 그리고 BGM.mp3를 배경 사운드 정보로서 각각 추출하여 메모리(10)에 임시 저장한다.For example, a tag of <body bgcolor = "# ffffff" background = "image / bgimg.png"> <bgsound src = "BGM.mp3" loop = "-1"> in the body of the HTML file loaded from the
다음에, 컨텐츠 추출부(30)는 HTML 파일의 본문에서 다시 태그들을 검색하여 실제 화면에 표시되는 컨텐츠들에 대한 정보들 즉 글자 정보와 이미지 정보들을 추출한 후 해당 글자 정보와 이미지 정보들을 메모리(10)에 임시 저장한다(단계 420).Next, the
즉, 컨텐츠 추출부(30)는 HTML 파일의 본문(<body>, </body>)에 쓰여진 글자들(표시 글자들), 그 글자들과 관련된 태그들(예컨대, <p> </p>, <div> </div>, <br>, <big> </big>, <small> </small>, <i> </i>, <strong> </strong> 등) 및 이미지에 대한 태그(<img=" ">)를 찾아내어 해당 HTML 파일에 의해 실제 화면에 표시되는 글자들 및 이미지들에 대한 정보를 추출한다. 이때, 컨텐츠 추출부(30)는 추출된 글자 정보와 이미지 정보들을 이용하여 도 2a에서와 같이 글자들과 이미지들을 라인별로 구분하며 만약 동일한 라인에 글자와 이미지가 모두 포함되어 있는 경우에는 해당 라인을 글자 부분과 이미지 부분으로 다시 구분한다. 이처럼 글자와 이미지들을 구분하는 것은 줄바꿈, 이미지 삽입 등의 HTML 태그를 이용하여 용이하게 실시할 수 있다.That is, the
그리고, 컨텐츠 추출부(30)는 글자와 이미지에 대한 구분이 완료되면 구분된 글자와 이미지를 도 2b와 같이 블럭화(T1 ∼ T14, I1 ∼ I5)한 후 그 블럭들의 구조를 알려주는 구조 정보를 페이지 작성부(40)로 전송해준다.When the classification of the letters and images is completed, the
컨텐츠 추출부(30)로부터 구조 정보를 제공받은 페이지 작성부(40)는 블럭들의 전체 사이즈(도 2b)를 기 설정된 사이즈(플래시 이미지를 구성하는 플래시 페이지의 사이즈)와 비교하여 전체 사이즈가 기 설정된 사이즈보다 큰 경우 도 2b의 블럭들(컨텐츠들)을 도 2c와 같이 기 설정된 사이즈의 페이지 단위로 구분한다(단계 430).The
즉, 하나의 HTML 파일에 포함된 글자와 이미지들이 HTML 방식에 의해 화면에 표시되는 경우에는 그 컨텐츠의 내용이 많고 적음과 상관없이 모두 하나의 페이지 로 표시되며, 그 내용이 한 화면에 모두 표시되지 못하는 경우에는 화면의 우측에 스크롤바를 생성하여 사용자가 그 스크롤바를 이용하여 해당 페이지를 상하로 스크롤함으로써 자신이 원하는 내용을 찾아볼 수 있도록 하고 있다. 그러나, 본 발명에서와 같이 컨텐츠들을 플래시 이미지로 표시하고자 하는 경우에는 그 플래시 이미지가 한 화면 내에 표시되어야 하기 때문에 플래시 이미지의 사이즈는 화면의 사이즈보다 작아야 한다. 따라서, 페이지 작성부(40)는 HTML에 포함된 글자와 이미지들이 많아서 도 2b의 전체 블럭들의 사이즈가 기 설정된 사이즈보다 큰 경우에는 도 2b의 블럭들을 도 2c와 같이 기 설정된 사이즈 단위로 구분하여 복수개의 페이지로 분할한다. 본 실시예에서는 페이지의 사이즈를 화면의 절반 사이즈로 하며, 도 2c는 도 2b의 블럭들이 2개의 페이지로 구분된 모습을 보여주고 있다.That is, when the characters and images included in one HTML file are displayed on the screen by the HTML method, the contents are all displayed as one page regardless of the content of the content is small or small, and the contents are not displayed on one screen. If it does not, a scroll bar is created on the right side of the screen so that the user can scroll up and down the page using the scroll bar to find the content he / she wants. However, when the contents are to be displayed as a flash image as in the present invention, the size of the flash image must be smaller than the size of the screen because the flash image must be displayed in one screen. Therefore, when the size of the entire blocks of FIG. 2B is larger than the preset size because the number of characters and images included in the HTML are many, the
그러나, HTML 파일에 포함된 컨텐츠의 전체 사이즈가 기 설정된 사이즈보다 크지 않은 경우에는 단계 430에서와 같은 페이지 구분 과정은 필요치 않게 된다.However, if the total size of the content included in the HTML file is not larger than the preset size, the page division process as in
다음에, 페이지 작성부(40)는 구분된 페이지별로 해당 페이지의 글자와 이미지 및 단계 410에서 추출된 배경 정보를 이용하여 플래시 페이지들을 작성한다(단계 440).Next, the
이를 위해, 페이지 작성부(40)는 도 3에서와 같이 배경색 정보를 이용하여 배경색 레이어를, 배경 이미지 정보를 이용하여 배경 이미지 레이어를, 해당 페이지에 포함된 글자들을 이용하여 글자 레이어를, 해당 페이지에 포함된 이미지들을 이용하여 이미지 레이어를, 그리고 배경 사운드 정보를 이용하여 배경 사운드 레이어를 생성한다. 이때 만약 단계 430에서 구분된 페이지의 수가 복수인 경우에는 페이지 간을 이동하기 위한 페이지 버튼 레이어를 추가로 생성한다. 도 3a는 도 2c에서 페이지-1에 대응되는 레이어들을 보여주고 있으며, 도 3b는 도 2c에서 페이지-2에 대응되는 레이어들을 보여주고 있다. 여기에서, 배경 정보를 이용하여 생성된 레이어들은 모든 페이지들에서 동일함을 알 수 있다.To this end, the
그리고, 페이지 작성부(40)는 생성된 각 페이지의 레이어들을 도 5와 같이 배경색 레이어, 배경 이미지 레이어, 글자 레이어, 배경 이미지 레이어, 배경 사운들 레이어 및 페이지 버튼 레이어 순으로 삽입하여 플래시 페이지를 작성한다. 도 6은 도 3a 및 도 3b의 레이어들을 도 5와 같이 삽입하여 작성한 플래시 페이지들의 모습을 보여준다.The
플래시 페이지들이 작성되면, 플래시 이미지 생성부(50)는 작성된 플래시 페이지들을 플래시 이미지의 프레임에 삽입함으로써 플래시 이미지를 생성한다(단계 450).When the flash pages are created, the
즉, 플래시 이미지 생성부(50)는 단계 440에서 생성된 각 페이지의 정보를 이용하여 대응되는 헤더(header)를 만든 후 해당 페이지를 헤더 다음에 저장함으로써 플래시 이미지를 생성한다.That is, the flash
생성된 플래시 이미지는 메모리(10)에 저장된 후 미도시된 송/수신 장치에 의해 유/무선 통신을 통해 수신측 단말기로 전송된다.The generated flash image is stored in the
도 7은 단계 440에서 생성되는 레이어들 중 이미지 레이어를 생성하는 과정을 보다 상세하게 설명하기 위한 순서도이다. 각 플래시 페이지에 삽입된 이미지 레이어의 생성 방법은 동일하므로 본 실시예에서는 설명의 편의를 위해 페이지-1에 포함된 이미지들을 이용하여 이미지 레이어를 형성하는 과정만을 설명한다. 또한, HTML 파일에 포함된 원래의 이미지와 그 이미지가 SWF 형식으로 변환된 이미지를 구분하기 위해 이하에서는 HTML 파일에 포함된 원래의 이미지를 소스 이미지로 칭하고 SWF 형식으로 변환된 이미지를 SWF 이미지로 칭한다.7 is a flowchart illustrating a process of generating an image layer among the layers generated in
페이지 작성부(40)는 페이지-1에 포함된 소스 이미지가 복수개인 경우 이들 중 어느 한 소스 이미지(예컨대, 가장 사이즈가 큰 소스 이미지 I2)를 먼저 선택한 후 선택된 소스 이미지가 어떤 종류의 이미지인지를 확인한다(단계 710).If there are a plurality of source images included in page-1, the
즉, 페이지 작성부(40)는 선택된 소스 이미지가 BMP 이미지, GIF 이미지, JPG 이미지, PNG 이미지 중 어떤 종류의 이미지에 해당하는지를 확인한다.That is, the
이미지의 종류가 확인되면, 페이지 작성부(40)는 해당 소스 이미지를 SWF 형식의 이미지로 변환한다(단계 720).If the type of the image is confirmed, the
즉, 해당 소스 이미지가 BMP 이미지인 경우, 페이지 작성부(40)는 BMP 이미지의 이미지 데이터를 사용해서 DefineBits 태그를 만들어 추가하고 PlaceObject2 태그와 ShowFrame 태그를 더 추가함으로써 해당 BMP 이미지를 SWF 이미지로 변환한다.In other words, if the source image is a BMP image, the
만약 해당 소스 이미지가 JPG 이미지인 경우, 페이지 작성부(40)는 JPG 이미지의 이미지 데이터를 사용해서 DefineBitsJPEG2 태그를 만들어 추가하고 PlaceObject2 태그와 ShowFrame 태그를 더 추가함으로써 해당 JPG 이미지를 SWF 이미지로 변환한다.If the corresponding source image is a JPG image, the
만약 해당 소스 이미지가 PNG 이미지인 경우, 페이지 작성부(40)는 PNG 이미 지의 이미지 데이터를 사용해서 DefineLossless2 태그를 만들어 추가하고 PlaceObject2 태그와 ShowFrame 태그를 더 추가함으로써 해당 PNG 이미지를 SWF 이미지로 변환한다.If the source image is a PNG image, the
만약 해당 소스 이미지가 GIF 이미지인 경우, 페이지 작성부(40)는 GIF 이미지의 이미지 데이터를 사용해서 DefineLossless2 태그를 만들어 추가하고 PlaceObject2 태그와 ShowFrame 태그를 더 추가함으로써 해당 GIF 이미지를 SWF 이미지로 변환한다.If the corresponding source image is a GIF image, the
마지막으로, 해당 소스 이미지가 상술한 BMP, JPG, GIF 이미지와 같은 정지 이미지가 아니라 여러개의 이미지들이 연속적으로 결합된 애니메이션 GIF 이미지인 경우, 페이지 작성부(40)는 이미지 데이터를 사용해서 DefineLossless2 태그를 만들어 추가하고 PlaceObject2 태그와 ShowFrame 태그를 더 추가한 후 애니메이션 GIF 이미지를 구성하는 이미지들 간의 시간 정보에 따라 추가적으로 PlaceObject2 태그와 ShowFrame 태그를 추가함으로써 해당 애니메이션 GIF 이미지를 SWF 이미지로 변환한다. 즉, 페이지 작성부(40)는 도 8a에서와 같이 애니메이션 GIF 이미지를 구성하는 이미지들 및 그 이미지들 간의 시간 정보(도 8에서는 500ms, 700ms, 800ms)를 추출한다. 다음에, 페이지 작성부(40)는 추출된 각 이미지들을 플래시 생성을 위한 프레임들에 저장한 후 저장된 프레임들을 도 8b와 같이 애니메이션 GIF 이미지에서의 시간 정보에 따라 다음 프레임에서 표시되도록 함으로써 애니메이션 GIF 이미지를 SWF 이미지로 변환한다.Finally, if the source image is not a still image such as the above-described BMP, JPG, or GIF image, but the animated GIF image in which several images are continuously combined, the
이미지 변환이 완료되면, 페이지 작성부(40)는 도 9와 같이 이미지 레이어 상에서의 SWF 이미지 위치가 페이지-1 상에서의 소스 이미지(I2) 위치와 같아지도록 SWF 이미지를 이미지 레이어 상에 위치시킨다(단계 630).When the image conversion is completed, the
소스 이미지(I2)에 대한 변환이 완료되면, 페이지 작성부(40)는 나머지 다른 소스 이미지(I1)에 대해서도 상술한 단계 710 내지 단계 730의 과정을 반복 수행함으로써 페이지-1에 대한 이미지 레이어 생성을 완료한다(단계 740).When the conversion to the source image I2 is completed, the
상술된 실시예에서는 설명의 편의를 위해 HTML 파일의 컨텐츠들이 단일 프레임으로만 표시되는 경우에 대해서만 설명하였다.In the above-described embodiment, only the case where the contents of the HTML file are displayed in a single frame for convenience of description.
그러나 만약에 HTML 파일이 각각 서로 다른 배경색과 배경 이미지 및 컨텐츠(글자와 이미지)를 갖는 복수의 프레임들로 표시되는 경우에는, 먼저 각 프레임에 대해 상술한 파일 변환 방법을 적용하여 각각의 프레임들을 플래시 이미지로 변환한다. 다음에, 변환된 각 플래시 이미지들을 서로 다른 레이어로 구성한 후 그 레이어들을 일정 순서로 결합시킴으로써 이들을 하나의 플래시 이미지로 만들 수 있다.However, if the HTML file is displayed with a plurality of frames each having a different background color, background image, and content (letters and images), the frames are first flashed by applying the above-described file conversion method for each frame. Convert to an image. Next, each converted flash image may be composed of different layers, and then the layers may be combined in a predetermined order to make them into a single flash image.
상술한 파일 변환 장치는 바람직하게는 이동통신단말기에서 SMS(Short Message Service), MMS(Multimedia Message Service), 및 이메일 서비스 등을 이용하는데 적용되어 해당 서비스의 컨텐츠를 플래시 이미지 형태로 송수신하게 된다.The above-described file conversion apparatus is preferably used to use a short message service (SMS), a multimedia message service (MMS), an e-mail service, etc. in a mobile communication terminal to transmit and receive contents of the corresponding service in the form of a flash image.
또한, 본 발명은 주로 이동통신단말기에 적용되므로 상술한 바와 같이 생성된 플래시 이미지를 이동통신단말기에서 많이 사용되고 있는 VIS(Vector Image Solution) 또는 DMF(Digital Mobile Frash) 포맷 이미지로 변환하는 것도 가능하다. 이러한 플래시 이미지를 VIS 또는 DMF 포맷으로 변환하는 것은 기존의 통상적 인 제작 도구를 이용하여 제작이 가능하므로 이에 대한 상세한 설명은 생략한다.In addition, since the present invention is mainly applied to a mobile communication terminal, it is also possible to convert the flash image generated as described above into a VIS (Vector Image Solution) or DMF (Digital Mobile Frash) format image which is widely used in a mobile communication terminal. The conversion of the flash image to the VIS or DMF format can be made using a conventional production tool, and thus a detailed description thereof will be omitted.
상술한 바와 같이, 본 발명의 파일 변환 장치는 멀티미디어 데이터가 포함된 HTML 파일을 단일한 형식의 플래시 이미지로 변환하여 송신함으로써 기존에 멀티미디어 데이터가 포함된 HTML 파일을 송수신시 멀티미디어 데이터가 처리되지 못하여 그 내용이 정확히 전달되지 못하는 문제를 해결할 수 있게 된다.As described above, the file conversion apparatus of the present invention converts an HTML file containing multimedia data into a single format flash image and transmits the multimedia file so that the multimedia data cannot be processed when the HTML file including the multimedia data is transmitted and received. It can solve the problem of the content not being delivered correctly.
Claims (18)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070051590A KR100814079B1 (en) | 2007-05-28 | 2007-05-28 | Method for converting html file to flash image |
JP2007179235A JP4606439B2 (en) | 2007-05-28 | 2007-07-09 | File conversion apparatus and method for converting HTML file into flash image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070051590A KR100814079B1 (en) | 2007-05-28 | 2007-05-28 | Method for converting html file to flash image |
Publications (1)
Publication Number | Publication Date |
---|---|
KR100814079B1 true KR100814079B1 (en) | 2008-03-14 |
Family
ID=39398879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070051590A KR100814079B1 (en) | 2007-05-28 | 2007-05-28 | Method for converting html file to flash image |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP4606439B2 (en) |
KR (1) | KR100814079B1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2459200A (en) * | 2008-04-18 | 2009-10-21 | Boeing Co | Converting documents and identifying structure for automatically extracting data |
KR101051639B1 (en) | 2009-08-21 | 2011-07-26 | 조광현 | How to Implement Animation with Text on the Web |
CN103176986A (en) * | 2011-12-20 | 2013-06-26 | 上海博泰悦臻电子设备制造有限公司 | Method for converting flash animation data into hypertext markup language (HTML) 5 data |
KR101621530B1 (en) | 2008-12-08 | 2016-05-17 | 주식회사 엘지유플러스 | Method and System for Providing Flash Contents via Mobile Network and Method and Apparatus for Converting Flash Contents |
KR20190092354A (en) * | 2019-07-29 | 2019-08-07 | 에스케이텔레콤 주식회사 | Method for communicating using image in messenger, apparatus and system for the same |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011243146A (en) * | 2010-05-21 | 2011-12-01 | Fujifilm Corp | Relay server and its program, web site browsing system, web site browsing method, and application program |
JP5311315B2 (en) * | 2011-10-14 | 2013-10-09 | ネオス株式会社 | Mail system and equipment and program used therefor |
CN104598577B (en) * | 2015-01-14 | 2017-09-15 | 晶赞广告(上海)有限公司 | A kind of extracting method of Web page text |
CN107767838B (en) | 2016-08-16 | 2020-06-02 | 北京小米移动软件有限公司 | Color gamut mapping method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205432B1 (en) * | 1998-06-05 | 2001-03-20 | Creative Internet Concepts, Llc | Background advertising system |
US20010056460A1 (en) * | 2000-04-24 | 2001-12-27 | Ranjit Sahota | Method and system for transforming content for execution on multiple platforms |
KR20020088962A (en) * | 2001-05-22 | 2002-11-29 | 주식회사 사이컴 | System and method for remote lecture using motion pictures on the internet |
KR20030025768A (en) * | 2001-09-22 | 2003-03-29 | (주)리얼미디어코리아 | A SYSTEM AND METHOD FOR PROVIDING A WIRE and WIRELESS INTERNET CREATIVE SERVICE |
KR20030025771A (en) * | 2001-09-21 | 2003-03-29 | 주식회사 자이닉스 | System for providing educational contents on Internet and method thereof |
JP2003108106A (en) * | 2001-09-28 | 2003-04-11 | Victor Co Of Japan Ltd | Multimedia presentation system |
US20040010753A1 (en) * | 2002-07-11 | 2004-01-15 | International Business Machines Corporation | Converting markup language files |
KR20040006882A (en) * | 2002-07-16 | 2004-01-24 | 벨록스소프트(주) | User interface system for supporting multi-theme of mobile phone |
KR20060013336A (en) * | 2005-03-30 | 2006-02-09 | 주식회사 위피아 | System and method for servicing multi-page message in web to phone type |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3851110B2 (en) * | 2001-05-18 | 2006-11-29 | 株式会社Ksk | Content provision method |
JP2003271508A (en) * | 2002-03-14 | 2003-09-26 | Ntt Comware Corp | Contents conversion system for portable terminal and contents conversion method |
JPWO2006103830A1 (en) * | 2005-03-29 | 2008-09-04 | 松下電器産業株式会社 | Display processing apparatus and display processing method |
-
2007
- 2007-05-28 KR KR1020070051590A patent/KR100814079B1/en not_active IP Right Cessation
- 2007-07-09 JP JP2007179235A patent/JP4606439B2/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6205432B1 (en) * | 1998-06-05 | 2001-03-20 | Creative Internet Concepts, Llc | Background advertising system |
US20010056460A1 (en) * | 2000-04-24 | 2001-12-27 | Ranjit Sahota | Method and system for transforming content for execution on multiple platforms |
KR20020088962A (en) * | 2001-05-22 | 2002-11-29 | 주식회사 사이컴 | System and method for remote lecture using motion pictures on the internet |
KR20030025771A (en) * | 2001-09-21 | 2003-03-29 | 주식회사 자이닉스 | System for providing educational contents on Internet and method thereof |
KR20030025768A (en) * | 2001-09-22 | 2003-03-29 | (주)리얼미디어코리아 | A SYSTEM AND METHOD FOR PROVIDING A WIRE and WIRELESS INTERNET CREATIVE SERVICE |
JP2003108106A (en) * | 2001-09-28 | 2003-04-11 | Victor Co Of Japan Ltd | Multimedia presentation system |
US20040010753A1 (en) * | 2002-07-11 | 2004-01-15 | International Business Machines Corporation | Converting markup language files |
KR20040006882A (en) * | 2002-07-16 | 2004-01-24 | 벨록스소프트(주) | User interface system for supporting multi-theme of mobile phone |
KR20060013336A (en) * | 2005-03-30 | 2006-02-09 | 주식회사 위피아 | System and method for servicing multi-page message in web to phone type |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2459200A (en) * | 2008-04-18 | 2009-10-21 | Boeing Co | Converting documents and identifying structure for automatically extracting data |
US8041695B2 (en) | 2008-04-18 | 2011-10-18 | The Boeing Company | Automatically extracting data from semi-structured documents |
US8180753B1 (en) | 2008-04-18 | 2012-05-15 | The Boeing Company | Automatically extracting data from semi-structured documents |
KR101621530B1 (en) | 2008-12-08 | 2016-05-17 | 주식회사 엘지유플러스 | Method and System for Providing Flash Contents via Mobile Network and Method and Apparatus for Converting Flash Contents |
KR101051639B1 (en) | 2009-08-21 | 2011-07-26 | 조광현 | How to Implement Animation with Text on the Web |
CN103176986A (en) * | 2011-12-20 | 2013-06-26 | 上海博泰悦臻电子设备制造有限公司 | Method for converting flash animation data into hypertext markup language (HTML) 5 data |
CN103176986B (en) * | 2011-12-20 | 2017-05-24 | 上海博泰悦臻电子设备制造有限公司 | Method for converting flash animation data into hypertext markup language (HTML) 5 data |
KR20190092354A (en) * | 2019-07-29 | 2019-08-07 | 에스케이텔레콤 주식회사 | Method for communicating using image in messenger, apparatus and system for the same |
KR102136793B1 (en) * | 2019-07-29 | 2020-07-22 | 에스케이텔레콤 주식회사 | Method for communicating using image in messenger, apparatus and system for the same |
Also Published As
Publication number | Publication date |
---|---|
JP4606439B2 (en) | 2011-01-05 |
JP2008293462A (en) | 2008-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100814079B1 (en) | Method for converting html file to flash image | |
KR100714700B1 (en) | Mobile communication terminal and method for outputting a short message thereof | |
AU2007346312B2 (en) | A communication network and devices for text to speech and text to facial animation conversion | |
US7308479B2 (en) | Mail server, program and mobile terminal synthesizing animation images of selected animation character and feeling expression information | |
JP5180230B2 (en) | Mobile communication terminal, message service server, system, and service providing method for providing message service including font data | |
CN108270926B (en) | Apparatus and method for transmitting and receiving handwriting animation message | |
US7702996B2 (en) | Apparatus and method for converting multimedia contents | |
CN107832038A (en) | The implementation method and device of Component Gallery | |
US7162197B2 (en) | Picture book production system, server for producing picture book, and recording medium | |
US20160328389A1 (en) | System for supporting multiple languages in webtoons | |
KR101010490B1 (en) | Data processing device | |
CN105956133B (en) | Method and device for displaying file on intelligent terminal | |
KR101176694B1 (en) | Document processor and re-aggregator | |
CN114390220A (en) | Animation video generation method and related device | |
KR100698324B1 (en) | Device and method for forwarding WAP contents using MMS message | |
CN117235019B (en) | Method for generating new readable file by multi-file extraction combination | |
JP2005182735A (en) | Document data display device, cellular phone device, document data display method, document data display program, computer-readable recording medium with it recorded, document data printer, document data output device, document data output method, document data output program, and computer-readable recording medium with it recorded | |
CN105897552A (en) | Method for generating an electronic message on an electronic mail client system and communication device | |
US20010015731A1 (en) | Portable radio communication terminal and expression style processing method therefor | |
JP2008523759A (en) | Method and system for synthesizing video messages | |
CN104866251A (en) | Apparatus and method for information providing | |
CN113382086A (en) | Document transmission method and device, electronic equipment and computer program product | |
KR101151579B1 (en) | Method for Multi-Media Signature in Mobile Communication Terminal | |
KR100658055B1 (en) | Method for service flash message in mobile phone | |
KR100705165B1 (en) | Mobile communication terminal and method for generating multimedia message using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
A302 | Request for accelerated examination | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20110310 Year of fee payment: 4 |
|
LAPS | Lapse due to unpaid annual fee |