This application is a National Stage filing of PCT application No. PCT/JP2009/003789 filed on Aug. 6, 2009 which claims priority from Japanese Patent Application No. 2008-212937 filed Aug. 21, 2008, all of which is hereby incorporated by reference herein in their entirety.
The present invention relates to an image processing apparatus for, when accepting an instruction to output a single file containing a plurality of images, outputting an image selected from among the images contained in the single file, a method for controlling the image processing apparatus, and a storage medium.
There have been known multifunction peripherals (MFPs) for, when a user selects any image from among input images, outputting the selected image.
Such an MFP obtains input images in a variety of methods, for example, by receiving image data from a host computer connected to the MFP, reading a document through a scanner included in the MFP to acquire image data, and reading out image data stored in a mobile memory medium.
The input images are stored into a hard disk included in the MFP. A list of images stored in the hard disk is displayed on a display unit in accordance with an instruction from the user. The user is permitted to select any image on the basis of the displayed list.
When the user selects any image, the selected image is output in any way, for example, by transmitting image data corresponding to the selected image to an external device via a network, or writing the image data into a mobile memory medium.
Furthermore, there has been recently known a format in which a single file contains a plurality of images. For example, Japanese Patent Laid-Open No. 2002-149153 discloses a technique of holding images with different resolutions in a single file and selecting an image to be displayed in accordance with a display area of a display apparatus for displaying images.
When a file in such a format that a plurality of images can be contained in a single file is output, the following problem may occur.
Assuming that the file contains a plurality of images, when the user instructs the
MFP to output the file, all of images contained in the file specified to be output are output. However, all the images contained in the file are not necessarily needed. In many cases, some of the images are not required.
For example, when a file containing a plurality of images having the same contents but having different resolutions is output, it is unnecessary to output all of the images. In some cases, one or more images with resolutions higher than a predetermined resolution may be output. More specifically, if a terminal, serving as a file output destination, can support high-resolution images, it is unnecessary to output a low-resolution image.
In addition, when a file containing a color image and a monochrome image which have the same contents is output, either the color image or the monochrome image may be output in some cases. More specifically, if a terminal, serving as a file output destination, does not support color images and processes only monochrome images, it is useless to output the color image which is not needed for the output destination.
As described above, in the case where a file in the format in which a single file contains a plurality of images is output, if all of images contained in the file specified to be output are output, unnecessary images are output, thus increasing an additional load.
The present invention has been made in consideration of the above-described problem. The present invention provides a mechanism for, when an instruction to output a single file containing a plurality of images is given, selecting at least one image from among images associated with each other of the contained images and outputting the selected image.
Citation List
Patent Literature
PTL 1: Japanese Patent Laid-Open No. 2002-149153
The present invention provides an image processing apparatus, a method of controlling the image processing apparatus, and a computer-readable storage medium storing a program for the method, the apparatus and method overcoming the above-described problem.
According to an aspect of the present invention, an image processing apparatus includes an accepting unit configured to accept an output instruction to output a single file containing a plurality of images from a user, an outputting unit configured to output at least one of the images contained in the file specified to be output based on the output instruction, a selecting unit configured to specify images which are associated with each other from among the plurality of images contained in the file specified to be output, and to select at least one image from among the specified images, and a controlling unit configured to cause the outputting unit to output the image, selected by the selecting unit, in accordance with the acceptance of the output instruction by the accepting unit.
According to another aspect of the present invention, there is provided a method of controlling an image processing apparatus. The method includes an accepting step of accepting an output instruction to output a single file containing a plurality of images from a user, an outputting step of outputting at least one of the images contained in the file specified to be output based on the output instruction, a specifying step of specifying images which are associated with each other from among the plurality of images contained in the file specified to be output, a selecting step of selecting at least one image from among the specified images, and a controlling step of causing the image, selected in the selecting step, to be output in the outputting step in accordance with the acceptance of the output instruction in the accepting step.
According to another aspect of the present invention, there is provided a computer-readable storage medium that stores a program for allowing a computer to execute the above-described method.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principle of the invention.
Exemplary embodiments of the present invention will be described in detail below with reference to the drawings. The following embodiments are not intended to restrict the present invention described in the appended claims. All of the combinations of features described in the embodiments are not necessary for solving problems in accordance with an embodiment of the present invention.
First Embodiment
A first embodiment of the present invention will be described below. This embodiment relates to a case where, when an instruction to output a single file containing a plurality of images is given, at least one image is selected from among images associated with each other of the contained images in accordance with a previously set condition and is then output.
Furthermore, a file server 120 is provided on the LAN 150. The file server 120 stores an image transmitted from the MFP 100 and transmits an image stored in the file server 120 to the MFP 100 in response to a request from the MFP 100. In addition, the MFP 100 performs e-mail communication with the PC 110 and another external device via an e-mail server 130.
A hard disk drive (HDD) 214 stores an image input to the MFP 100. An image stored in the HDD 214 is displayed on a liquid-crystal display provided for an operation unit 220 and is also output to the printer, indicated at 222, an external device on the LAN 150, or a mobile memory medium 221 in accordance with a user operation.
An operation-unit interface (I/F) 215 connects the operation unit 220 to the control unit 210. The operation unit 220 is provided with the liquid-crystal display having a touch panel function, and a keyboard.
An external-memory interface (I/F) 216 connects the mobile memory medium 221 to the control unit 210. The mobile memory medium 221 communicates with the control unit 210 using any of various wired and wireless communication methods, e.g., universal serial bus (USB) to transmit and receive data of, for example, an image.
A printer interface (I/F) 217 connects the printer 222 to the control unit 210. An image to be printed using the printer 222 is transferred from the control unit 210 through the printer I/F 217 to the printer 222 and is stored into a recording medium in the printer 222.
A scanner interface (I/F) 218 connects the scanner, indicated at 223, to the control unit 210. The scanner 223 reads an image on a document to generate image data and supplies the data to the control unit 210 through the scanner I/F 218. The scanner 223 is capable of generating a file in a format (multiple-image format) in which a single file contains a plurality of images and which will be described below.
A network interface (I/F) 219 connects the control unit 210 (MFP 100) to the LAN 150. The network OF 219 transmits an image to an external device on the LAN 150 and receives an image from the external device on the LAN 150.
The multiple-image format will now be described.
The first-page image header 302 stores information relating to a first page image 303. A second-page image header 304 stores information relating to a second page image 305. An Nth-page image header 306 stores information relating to an Nth page image 307.
In this case, it is assumed that the respective images contained in the file in the multiple-image format are general format images, e.g., JPEG images. If a file in the multiple-image format is input to an MFP or PC that does not support the multiple-image format, therefore, a first page image alone can be displayed by generalized JPEG viewer software.
A main image flag 402 is on when the image 303 is a main image. A “main image” is an image previously specified as an example representing images associated with each other of images contained in a file in the multiple-image format. Only one of images associated with each other is specified as a main image.
In this embodiment, a plurality of images associated with each other are a color image and a monochrome image having the same contents. In addition, a plurality of images having the same contents and different resolutions are also handled as images associated with each other. A plurality of images having the same contents and different conditions other than the above-described different visuals, such as color and monochrome or different resolutions, may be handled as images associated with each other.
Associated-image information 403 includes information indicating an image, associated with the image 303, of the images contained in the file when the main image flag 402 is on. For example, when the image 303 is a color image, information indicating a monochrome image having the same contents as those of the image 303 is stored as the associated-image information 403. Alternatively, information indicating an image having the same contents as those of the image 303 and having a different resolution from that of the image 303 is stored as the associated-image information 403.
Color/monochrome information 404 includes information indicating whether the image 303 is a color image or a monochrome image. Resolution information 405 includes information indicating a resolution of the image 303.
The button 501 is pressed when the user performs setting (first specification) relating to output of a multiple-image format file. When the button 501 is pressed, a window shown in
In the case where the user gives an instruction to output a file in the multiple-image format, when the user intends to select a monochrome image from among the images contained in the file (hereinafter, also referred to as “target file”) specified to be output and output the selected image, the user selects “DELETE COLOR IMAGE”, serving as the first condition. Alternatively, in this case, when the user intends to select a high-resolution image from among the images contained in the target file and output the selected image, the user selects “DELETE LOW-RESOLUTION IMAGE”, serving as the second condition.
In the case where the user selects “DELETE LOW-RESOLUTION IMAGE”, the user can input a threshold resolution into an input field 703. The threshold resolution is used to distinguish a high-resolution image from a low-resolution image. Referring to
When an OK button 704 is pressed after either the first condition “DELETE COLOR IMAGE” or the second condition “DELETE LOW-RESOLUTION IMAGE” is selected, information indicating descriptions of such an input operation is stored into the HDD 214 and the window of
In the case where the user gives an instruction to output a file in the multiple-image format, when the user intends to output only the representative image of the images contained in the target file, the user selects the condition “OUTPUT ONLY REPRESENTATIVE IMAGE”. Alternatively, in this case, when the user intends to output the images contained in the target file as individual files, the user selects the condition “OUTPUT ALL OF IMAGES AS INDIVIDUAL FILES”.
After either the condition “OUTPUT ONLY REPRESENTATIVE IMAGE” or the condition “OUTPUT ALL OF IMAGES AS INDIVIDUAL FILES” is selected, when an OK button 803 is pressed, information indicating descriptions of such an input operation is stored into the HDD 214 and the window of
An item 901 includes information indicating whether setting for output of a file in the multiple-image format has been made. In the case where the button 501 in
An item 902 is assigned a value only when the value in the item 901 indicates “on”. When an instruction to output a file in the multiple-image format is given, the item 902 includes information indicating whether or not to output an image as a file in the multiple-image format. Specifically, when the button 601 in
Items 903 and 904 are assigned values only when the value in the item 902 indicates “on”. A value in either one of the items 903 and 904 indicates “on” and a value in the other one indicates “off”. When the instruction to output a file in the multiple-image format is given, the item 903 includes information indicating whether or not to select and output a monochrome image from images contained in the target file. Specifically, when the condition “DELETE COLOR IMAGE” is selected in the window of
When the instruction to output a file in the multiple-image format is given, the item 904 includes information indicating whether or not to select and output a high-resolution image from images contained in the target file. Specifically, when the condition “DELETE LOW-RESOLUTION IMAGE” is selected in the window of
An item 905 is assigned a value only when the value in the item 904 indicates “on”. The item 905 includes a resolution input in the input field 703 in the window of
Items 906 and 907 are assigned values only when the value in the item 902 indicates “off”. A value in either the item 906 or the item 907 indicates “on” and a value in the other one indicates “off”. When the instruction to output a file in the multiple-image format is given, the item 906 includes information indicating whether or not to output only the representative image of images contained in the target file. Specifically, when the condition “OUTPUT ONLY REPRESENTATIVE IMAGE” is selected in the window of
When the instruction to output a file in the multiple-image format is given, the item 907 includes information indicating whether or not to output all of images contained in the target file as individual files. Specifically, when the condition “OUTPUT ALL OF IMAGES AS INDIVIDUAL FILES” is selected in the window of
In an area 1003, the information blocks relating to the respective files are displayed. Referring to
A SPECIFY DESTINATION button 1004 is pressed when the user specifies a destination as an output destination to which an image contained in the selected file is to be output. In the following description, as a method of outputting an image contained in the selected file, transmission of the image to an external device via the LAN 150 will be described as an example. The image may be written into the mobile memory medium 221 connected to the MFP 100 and be output.
Destination information input by the user is displayed in a field 1101. When the user presses an ENTER button 1102 after specifying a destination, the destination specification window closes and the file list window of
When the TRANSMIT button 1005 is pressed in the file list window, a determination is made in step S1201 as to whether a target file specified to be transmitted is in the multiple-image format. This determination is made based on information stored in the file header 301 shown in
In step S1202, setting information shown in
As a result of determination in step S1201 or S1203, if the process proceeds to step S1208, the selected file is transmitted as it is to a specified transmission destination and the process is terminated.
In step S1204, a determination is made based on the value in the item 902 as to whether or not to output an image contained in the target file as a file in the multiple-image format when the instruction to output the file in the multiple-image format is given. If it is determined that an image in the file is to be output as a file in the multiple-image format, the process proceeds to step S1301. If not, the process proceeds to step S1205.
In step S1205, a determination is made as to whether or not to output a plurality of images contained in the target file as individual files when the instruction to output the file in the multiple-image format is given. If it is determined that the images contained in the target file are to be output as individual files, the process proceeds to step S1206. If not, the process proceeds to step S1207.
In step S1206, a file is generated for each of the images contained in the target file.
Specifically, a file header 1501 is added to the first-page image header 302 and the first-page image 303 in the original file. A file header 1502 is added to the second-page image header 304 and the second page image 305 in the original file. Similarly, a file header 1503 is added to the Nth-page image header 306 and the Nth page image 307 in the original file.
In step S1206, the files equal in number to the images contained in the target file are generated in the above-described manner. In step S1208, the generated files are transmitted to the specified destination.
On the other hand, in step S1207, one image with the representative image flag 401 on is left in the images contained in the file specified to be output and the other images are deleted, and one file containing the left image is generated. In step S1208, the generated file is transmitted to the specified destination.
Referring to
In step S1302, the first-page image header contained in the target file is referred to. In step S1303, a determination is made based on the main image flag 402 in the image header as to whether the first page image is a main image. If it is determined that the first page image is a main image, the process proceeds to step S1304. If not, the process proceeds step S1308.
In step S1304, the image header of another image associated with the first page image is referred to on the basis of information included in the associated-image information 403. In step S1305, a determination is made as to whether a monochrome image is included in the images including the first page image (main image) and the other image (associated image) associated with the first page image. If a monochrome image is included in the images, the process proceeds to step S1306. If not, the process proceeds to step S1307.
In step S1306, a color image is deleted from the images including the first page image (main image) and the other image (associated image) associated with the first page image. On the other hand, in step S1307, the first page image (main image) is left and the other image (associated image) associated with the first page image is deleted.
In step S1308, a determination is made as to whether the image header referred to in step S1302 belongs to the last page. If it is determined that the image header does not belong to the last page (namely, the next page exists), the process returns to step S1302. In step S1302, the image header of the next page is referred to.
If it is determined in step S1308 that the image header referred to in step S1302 belongs to the last page, the process proceeds step S1309. In step S1309, images which are not deleted in step S1306 or S1307 are transmitted in a single file in the multiple-image format to the destination.
Processing in steps S1302 to S1308 will be concretely described with reference to
Referring to
The file is subjected to the processing in step S1302 to S1308 as follows. In step S1302, the image header of the image 1601 is referred to, so that the image 1601 is recognized as a main image. In step S1304, the respective image headers of the images 1602 and 1603 associated with the image 1601 are referred to.
In step S1305, it is determined that monochrome images are included in the images associated with each other, since the images 1602 and 1603 are monochrome images. The process proceeds to step S1306. In step S1306, the image 1601 that is color is deleted. In this case, since the image 1601 as a main image is deleted, the image 1602 associated with and next to the image 1601 is specified as a new main image.
Subsequently, the process proceeds to step S1308 and then returns to step S1302. The image header of the image 1602 and that of the image 1603 are referred to. In this instance, the images 1602 and 1603 associated with the image 1601 have been subjected to the processing in steps S1302 to S1308. Accordingly, the images 1602 and 1603 are not deleted.
After that, the image header of the image 1604 is referred to. Since the image 1604 is not a main image, the process proceeds to step S1308.
The process then returns to step S1302. The image header of the image 1605 is referred to, so that the image 1605 is recognized as a main image. In step S1304, the image headers of the images 1604 and 1606 associated with the image 1605 are referred to.
In step S1305, since each of the images 1604, 1605, and 1606 is a color image, it is determined that a monochrome image is not included in the images associated with each other. The process proceeds to step S1307. In step S1307, the images 1604 and 1606, serving as associated images, are deleted. In this case, since there is no image associated with the remaining image 1605, the main image flag 402 in the image header of the image 1605 is automatically switched off.
As a result of the above-described processing, a multiple-image format file containing the images 1602, 1603, and 1605, namely, the three images shown in
A case where it is determined in step S1301 that a high-resolution image is to be selected and output (namely, a low-resolution image is to be deleted) will now be described with reference to
In step S1403, the image header of another image (associated image) associated with the first page image is referred to on the basis of information stored as the associated-image information 403. In step S1404, a determination is made as to whether a high-resolution image is included in the images including the first page image (main image) and the other image (associated image) associated with the first page image. In this determination, an image with a resolution lower than a set resolution in the item 905 is a low-resolution image and an image with a resolution equal to or higher than the set resolution is a high-resolution image. When it is determined that a high-resolution image is included, the process proceeds to step S1405. If not, the process proceeds to step S1406.
In step S1405, a low-resolution image is deleted from the images including the first page image (main image) and the other image (associated image) associated with the first page image. On the other hand, in step S1406, the first page image (main image) is left and the other image associated with the first page image is deleted.
In step S1407, a determination is made as to whether the image header referred to in step S1401 belongs to the last page. If it is determined that the image header does not belong to the last page (namely, the next page exists), the process returns to step S1401. In step S1401, the image header of the next page is referred to.
If it is determined that the image header referred to in step S1401 belongs to the last page, the process proceeds to step S1408. In step S1408, images which are not deleted in step S1405 or S1406 are transmitted in a single file in the multiple-image format to the destination.
Processing in steps S1401 to S1407 will now be concretely described with reference to
The file is subjected to the processing in steps S1401 to 1407 as follows. In step S1401, the image header of the image 1801 is referred to, so that the image 1801 is recognized as a main image. In step S1403, the image headers of the images 1802 and 1803 associated with the image 1801 are referred to.
In step S1404, it is determined that high-resolution images are included in the images associated with each other, since the images 1802 and 1803 are high-resolution images. The process proceeds to step S1405. In step S1405, the image 1801, serving as a low-resolution image, is deleted. In this case, since the image 1801 as the main image is deleted, the image 1802 associated with and next to the image 1801 is specified as a new main image.
Subsequently, the process proceeds to step S1407 and then returns to step S1401. The image header of the image 1802 and that of the image 1803 are referred to. In this instance, the images 1802 and 1803 associated with the image 1801 have been subjected to the processing in steps S1401 to 1407. Accordingly, the images 1802 and 1803 are not deleted.
After that, the image header of the image 1804 is referred to. Since the image 1804 is not a main image, the process proceeds to step S1407.
The process then returns to step S1401. The image header of the image 1805 is referred to, so that the image 1805 is recognized as a main image. In step S1403, the image headers of the images 1804 and 1806 associated with the image 1805 are referred to.
In step S1404, since each of the images 1804, 1805, and 1806 is a low-resolution image, it is determined that a high-resolution image is not included in the images associated with each other. The process proceeds to step S1406. In step S1406, the images 1804 and 1806, serving as associated images, are deleted. In this case, since there is no image associated with the remaining image 1805, the main image flag 402 in the image header of the image 1805 is automatically switched off.
As a result of the above-described processing, a multiple-image format file containing the images 1802, 1803, and 1805, namely, the three images shown in
As described above, in the first embodiment, when an instruction to output a file containing a plurality of images, at least one image is selected from among images associated with each other of the images contained in the file in accordance with conditions set as user mode settings. Consequently, after an unnecessary image is deleted from the images contained in the file specified to be output, the images can be output. Advantageously, needless processing for output of an unnecessary image is avoided.
In addition, a terminal, serving as an image output destination, is supplied with the images from which images unnecessary for the terminal have been removed (deleted) in the output source. Advantageously, the terminal escapes receiving a file having a large amount of data.
Second Embodiment
A second embodiment of the present invention will be described below. The first embodiment has been described with respect to the case where conditions for selecting at least one image from among images associated with each other of images contained in a single file are set as user mode settings. In other words, in the first embodiment, images are selected in accordance with common conditions at all times unless the user intentionally changes the conditions when giving an instruction to output a file.
According to the second embodiment, a mechanism for setting the above-described conditions to select an image for each output destination previously registered in the HDD 214 is further provided. Since the structure in the second embodiment is the same as that in the first embodiment except for the mechanism, redundant description is omitted.
As shown in
In the second embodiment, the process illustrated by the flowchart shown in
For example, so long as an administrator sets conditions to select an image for each output destination in accordance with the capacity of the output destination, therefore, if the user who actually gives an instruction to output a file does not know the capacity of an output destination, a necessary image can be appropriately selected and be output. Specifically, conditions to delete a color image and output an image can be set for an output destination that does not support color images and processes only monochrome images. Conditions to output an image without deleting a color image can be set for an output destination that supports color images.
To set conditions in association with an output destination, the conditions may be set on the windows shown in
If a specified output destination is not registered in the HDD 214, alternatively, when a specified output is registered in the HDD 214 but conditions are not set, common conditions set as user mode settings described in the first embodiment may be used.
Third Embodiment
A third embodiment of the present invention will be described below. The first embodiment has been described with respect to the case where conditions to select at least one image from among images associated with each other of images contained in a single file are set as user mode settings. Specifically, in the first embodiment, an image is selected in accordance with the common conditions unless the user intentionally changes the conditions when giving an instruction to output a file.
According to the third embodiment, a mechanism for setting the above-described conditions to select an image in association with each of different methods available for image output is further provided. Since the structure in the third embodiment is the same as that in the first embodiment except for the mechanism, redundant description is omitted.
The MFP 100 outputs an image by means of any of different methods of outputting, e.g., e-mail transmission via the e-mail server 130, file transmission using SMB to the PC 110 or the file server 120, and output to the mobile memory medium 221. In the third embodiment, conditions to select an image are set for each method of outputting, as shown in
In the third embodiment, although the process illustrated by the flowchart shown in
Consequently, for example, when an image is intended to be attached to an e-mail, a condition for deleting many images can be set so that the amount of data to be output is lower than that for file transmission or that for output to the mobile memory medium.
The first to third embodiments have been described. Features of the above-described first to third embodiments may be individually provided, or may be appropriately combined.
In the above description, the window shown in
In the above description, images associated with each other are defined as images having the same contents and different visuals, e.g., color and monochrome or different resolutions. For example, a plurality of images successively captured at predetermined short intervals may be handled as images associated with each other.
Other Embodiments
The embodiments of the present invention have been described in detail above. The present invention can also take the form of an embodiment as, for example, a system, an apparatus, a method, a program, or a storage medium (recording medium). Specifically, the present invention is applicable to a system including a plurality of devices or an apparatus including a single device.
The present invention can also be achieved by supplying a program (in the embodiments, a program corresponding to the flowchart shown in the drawings) of software for implementing the functions of the above-described embodiments to a system or apparatus directly or from a remote external device, and allowing a computer of the system or apparatus to read out and execute the supplied program code.
Accordingly, the program code itself installed in the computer to implement functional processing of the present invention by the computer may also implement aspects of the present invention. In other words, aspects of the present invention may include the computer program itself for implementing the functional processing of the present invention.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2008-212937 | Aug 2008 | JP | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/JP2009/003789 | 8/6/2009 | WO | 00 | 4/9/2010 |
| Publishing Document | Publishing Date | Country | Kind |
|---|---|---|---|
| WO2010/021098 | 2/25/2010 | WO | A |
| Number | Name | Date | Kind |
|---|---|---|---|
| 20040165780 | Maki et al. | Aug 2004 | A1 |
| 20040189687 | Yamamoto | Sep 2004 | A1 |
| 20060204144 | Fujiwara et al. | Sep 2006 | A1 |
| 20070077025 | Mino | Apr 2007 | A1 |
| 20090172011 | Onomura | Jul 2009 | A1 |
| 20110176174 | Terao | Jul 2011 | A1 |
| Number | Date | Country |
|---|---|---|
| 2000-029643 | Jan 2000 | JP |
| 2002-149153 | May 2002 | JP |
| 2004-295231 | Oct 2004 | JP |
| 2006-253994 | Sep 2006 | JP |
| 2006-301515 | Nov 2006 | JP |
| 2007-043698 | Feb 2007 | JP |
| Number | Date | Country | |
|---|---|---|---|
| 20100271659 A1 | Oct 2010 | US |