Information processing device, method, and program
The information processing apparatus addresses the challenge of resizing documents with different aspect ratios by maintaining object relationships, ensuring seamless layout adjustments.
Patent Information
- Application Number
- JP2022158761
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-30
AI Technical Summary
Existing image editing systems struggle with efficiently changing document sizes having different aspect ratios without distorting the layout of objects.
An information processing apparatus that modifies the layout of objects by maintaining their positional relationship with the document frame when changing aspect ratios, while resizing only specific object types.
Facilitates convenient and distortion-free resizing of documents with different aspect ratios by automatically adjusting object layouts.
Smart Images

Figure 0007955123000001 
Figure 0007955123000002 
Figure 0007955123000003
Abstract
Description
TECHNICAL FIELD
[0001] The present invention relates to an information processing apparatus, method, and program capable of performing image editing. BACKGROUND ART
[0002] In recent years, there has been an increasing number of cases where posters, business cards, pamphlets, and the like are edited and printed. When a user wants to easily create and edit a poster image or the like, template data defining the layout of objects such as text and images is used. Patent Document 1 describes that, for template data defining the layout of objects, the sizes that can be changed for the template are limited to sizes having matching or similar aspect ratios. BACKGROUND ART DOCUMENTS PATENT DOCUMENTS
[0003] Patent Document 1 Japanese Patent Laid-Open No. 2005-102127 SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION
[0004] Patent Document 1 does not mention the case of changing to a document size with a different aspect ratio.
[0005] An object of the present invention is to provide an information processing apparatus, method, and program that improve convenience when changing to a document size with a different aspect ratio. MEANS FOR SOLVING THE PROBLEMS
[0006] To solve the above problems, the information processing apparatus according to the present invention includes a display control means for displaying an image represented by image data on a display means, a receiving means for receiving a change in the original size of the image displayed on the display means, and when the receiving means receives a change from a first original size to a second original size having a different aspect ratio from the first original size, the image data includes multiple The system includes a means for changing the layout of objects based on the second original size, The modification means modifies the layout of a first object, which is an object of a first type included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the first document size area, so that the predetermined positional relationship is maintained with respect to the outer frame of the second document size area, and does not modify the layout of a second object, which is an object of a type other than the first type, even if it is included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the first document size area. The display control means is configured such that the layout is changed by the modification means. The First object and the aforementioned second object whose layout has not been changed The display means is characterized by displaying an image of the second original size based on the above. [Effects of the Invention]
[0007] According to the present invention, it is possible to improve convenience when changing to a document size with a different aspect ratio. [Brief explanation of the drawing]
[0008] [Figure 1] This is a diagram showing the configuration of a printing system. [Figure 2] This diagram shows the hardware configuration of each device in the printing system. [Figure 3] This diagram shows the software configuration of the PC100. [Figure 4] This is a diagram showing the user interface screen. [Figure 5] This is a diagram showing the user interface screen. [Figure 6] This is a diagram showing the user interface screen. [Figure 7] This is a flowchart showing the process for changing the size of a document. [Figure 8] This diagram shows a table that defines the size of the original document. [Figure 9] This is a diagram to explain how to change the size of the manuscript. [Figure 10] This diagram shows the layout of each object. [Figure 11] FIG. 3 is a diagram illustrating the layout of each object. [Figure 12] FIG. 4 is a diagram illustrating a user interface screen. [Figure 13] FIG. 5 is a diagram illustrating the layout of each object. [Figure 14] FIG. 6 is a flowchart illustrating a process for changing the document size. [Figure 15] FIG. 7 is a diagram illustrating a user interface screen. [Figure 16] FIG. 8 is a diagram illustrating a user interface screen. [Figure 17] FIG. 9 is a diagram for explaining the change in document size. [Figure 18] FIG. 10 is a diagram illustrating a user interface screen. [Figure 19] FIG. 11 is a flowchart illustrating a process for changing the template size. [Figure 20] FIG. 12 is a diagram illustrating a table that defines the template size. [Description of Embodiments]
[0009] Hereinafter, embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiments, not all of these plurality of features are essential to the invention, and the plurality of features may be arbitrarily combined. Furthermore, in the attached drawings, the same or similar components are denoted by the same reference numerals, and redundant descriptions are omitted.
[0010] [First Embodiment] FIG. 1 is a diagram illustrating an example of a configuration of a printing system according to the present embodiment. The printing system includes a client computer (hereinafter, PC) 100, a display (display device) 110, a router 120, a mobile terminal 200, a server computer (hereinafter, server) 300, and a printer 400. The PC 100 is connected to the display 110 via a communication cable, and displays various user interface screens on the display 110 for a user of the PC 100. Not only the PC 100 itself but also the PC 100 and the display 110 may be collectively referred to as an information processing apparatus. Further, the PC 100 is connected to the router 120 via wired communication or wireless communication, and can mutually communicate with other communication devices via the router 120 and the Internet 130. The mobile terminal 200 can mutually communicate with other communication devices via the router 120 and the Internet 130 by wireless communication. The server 300 is, for example, a web server that provides a web application that allows a user to create / edit content data to be printed. The server 300 can mutually communicate with other communication devices via the Internet 130. Then, the server 300 receives data held by the PC 100 or the mobile terminal 200, stores the data in a memory, and can execute data processing and data transmission to another device such as the PC 100. The printer 400 receives data stored in the PC 100, the mobile terminal 200, or the server 300, and performs printing on a recording medium such as printing paper.
[0011] In the printing system shown in Figure 1, a user of PC100 can print content created using a web application on server 300 using printer 400. Alternatively, a user of PC100 can print content using a native application pre-installed on PC100 without using the web application on server 300. A user of PC100 can pre-configure web applications and native applications to enable linking, allowing content created by a web application to be printed on printer 400 via a native application. In this embodiment, regardless of the above configurations, the application used by the user to print content on PC100 is simply referred to as an "application." The hardware configuration of each device in Figure 1 will now be described.
[0012] Figure 2 shows an example of the hardware configuration of each device in the printing system shown in Figure 1. First, the hardware configuration of PC100 will be explained. CPU101 is the central processing unit and comprehensively controls PC100, which is an information processing device. ROM102 is non-volatile storage that holds various data, programs, and tables. For example, basic programs and various application programs are stored in ROM102. Application programs include, for example, printing application programs downloaded and installed from an external server, and front-end programs in the Web application of server 300. RAM103 is volatile storage that temporarily holds programs and data. External storage device 104 is non-volatile storage such as a hard disk drive (HDD) or solid state drive (SSD) and holds programs and data. CPU101 executes various processes based on the programs and data stored in ROM102, RAM103, and external storage device 104. For example, the operation of PC100 in this embodiment is realized by CPU101 reading the program stored in ROM102 into RAM103 and executing it.
[0013] The data communication interface (I / F) 105 performs data communication with external devices. For example, the data communication I / F 105 controls the transmission and reception of data between the server 300 and the printer 400 via the router 120. As a data communication method, wired connection methods such as USB, IEEE 1394, and LAN, or wireless connection methods such as Bluetooth® and WiFi® are used. The input device control unit 106 acquires information about user operations received via the input device 107 and transmits this information to the CPU 101. The input device 107 is a Human Interface Device (HID) such as a keyboard or mouse. The display device control unit 108 converts screen data, such as the user interface screen, into drawing data and transmits the drawing data to the display 110 for display. Each block within the PC 100 is interconnected via the internal bus 109. The configuration of the PC 100 is not limited to the configuration shown in Figure 2, and may have a configuration appropriate to the functions that the device to be applied as PC 100 can perform.
[0014] Next, the hardware configuration of the mobile terminal 200 will be described. The mobile terminal 200 mainly has the functions of an information processing device such as a tablet computer or smartphone, and is equipped with a touch panel that serves as both a display and input interface. The CPU 201 is the central processing unit and comprehensively controls the mobile terminal 200. The ROM 202 is a non-volatile storage that holds various data and programs. For example, the ROM 202 stores basic programs and various application programs. The RAM 203 is a volatile storage that temporarily holds programs and data. The external storage device 204 is a non-volatile storage such as a hard disk drive (HDD) or a solid state drive (SSD) and holds programs and data. The external storage device 204 may be configured externally. The CPU 201 executes various processes based on the programs and data stored in the ROM 202, RAM 203, and external storage device 204. For example, the operation of the mobile terminal 200 in this embodiment is realized by the CPU 201 reading the program stored in the ROM 202 into the RAM 203 and executing it.
[0015] The data communication interface 205 performs data communication with external devices. For example, wired connection methods such as USB, IEEE1394, and LAN, or wireless connection methods such as Bluetooth and WiFi, are used as data communication methods. The input device control unit 206 acquires information about user operations received via the input device 207 and transmits this information to the CPU 201. The input device 207 is a device capable of receiving input operations on a screen, such as a touch panel with display and input functions, found in tablet computers and smartphones. The display device control unit 208 converts screen data, such as user interface screens, into drawing data and displays this drawing data on the display device 209. Each block within the mobile terminal 200 is interconnected via the internal bus 210. The configuration of the mobile terminal 200 is not limited to the configuration shown in Figure 2, and may have a configuration appropriate to the functions that the device applied as a mobile terminal 200 can perform.
[0016] Next, the hardware configuration of the server 300 will be described. The CPU 301 is the central processing unit and provides overall control of the server 300. The ROM 302 is non-volatile storage that holds various table data and programs. For example, the ROM 302 stores basic programs and various application programs. Application programs include, for example, a printing application that can be downloaded by the user. The RAM 303 is volatile storage that temporarily holds programs and data. The external storage device 304 is non-volatile storage such as a hard disk drive (HDD) or solid state drive (SSD) and holds programs and data. For example, in this embodiment, the operation of the server 300 is achieved by the CPU 301 reading the program stored in the ROM 302 into the RAM 303 and executing it.
[0017] The data communication interface 305 performs data communication with external devices. For example, the data communication interface 305 controls the transmission and reception of data between the PC 100 and the printer 400 via the router 120. Wired connection methods such as USB, IEEE 1394, and LAN, or wireless connection methods such as Bluetooth and WiFi, can be used for data communication. Each block within the server 300 is interconnected via the internal bus 306. The configuration of the server 300 is not limited to the configuration shown in Figure 2, and may have an appropriate configuration depending on the functions that the device being used as the server 300 can perform.
[0018] Next, the hardware configuration of the printer 400 will be described. The data communication interface 401 performs data communication with external devices. For example, the data communication interface 401 controls the transmission and reception of data between the PC 100 and the server 300 via the router 120. As a data communication method, wired connection methods such as USB, IEEE1394, and LAN, or wireless connection methods such as Bluetooth and WiFi are used.
[0019] The printer 400 can receive print data generated by the PC 100, mobile terminal 200, and server 300 and print to the recording medium. The print data includes image data to be printed and print setting data that defines the print settings. The printer controller 402 controls the printer engine 403 based on the print data received from the external device.
[0020] The printer controller 402 performs operations on image data, such as color space conversion and color separation processing according to the paper type specified in the print settings data, to generate record data that can be processed by the printer engine 403. The printer controller 402 also performs image processing such as output gradation correction and halftoning using image processing parameters such as lookup tables.
[0021] The printer engine 403 converts the image data of the print data into ink color data for each ink used in the printer 400 and executes the printing process. The printer engine 403 has a configuration that corresponds to the recording method of the printer 400. For example, in this embodiment, the printer 400 is assumed to be an inkjet printer that records to a recording medium using an inkjet recording method. In this case, the printer engine 403 is configured to include an ink tank for storing each ink and a recording head equipped with a row of nozzles for ejecting ink droplets. During the printing process, the heating operation of a heater mounted on the recording head is controlled based on the recorded data, and the ejection of ink droplets from the nozzles is controlled.
[0022] The configuration of printer 400 is not limited to the configuration shown in Figure 2, and may have a configuration appropriate to the functions that the device to be applied as printer 400 can perform. Furthermore, printer 400 is not limited to an inkjet recording method, but may also be a printer that uses other recording methods such as electrophotography. In addition, printer 400 may be a multifunction device (MultiFunctional Peripheral (MFP)) in which functions such as a scanner and facsimile are integrated.
[0023] Server 300 is, for example, a web server that provides a web application that allows users to create and edit content data to be printed (e.g., poster image data). In this case, the software of Server 300 consists of a front-end that controls the display of a web browser such as PC 100, and a back-end. The front-end manages and holds programs (JavaScript) that run on the web browser, and when these are sent (downloaded) to PC 100, for example, the corresponding display is performed in the web browser of PC 100. The front-end includes, for example, a program for user authentication and a program for processing content creation / editing. When the front-end program is downloaded to PC 100, that program becomes part of the software configuration of PC 100.
[0024] In this embodiment, a native application pre-installed on PC100 is assumed as an example of an application capable of creating and editing content data. PC100 has a printer driver installed that corresponds to printer 400. However, it is also possible to configure the system so that content such as posters is created / edited by the user via the front-end on PC100, and rendering is performed by the back-end on server 300. In that case, when the front-end receives a print command from the user, it instructs the back-end to print based on the print settings for the printer driver, and also sends the content data created / edited by the user to the back-end. The back-end performs rendering on the transmitted content data and sends it back to PC100. The rendered content data is then printed by the printer corresponding to the printer driver.
[0025] Figure 3 shows an example of the software configuration of PC100. PC100's software configuration includes application 2, operating system 3, monitor driver 4, and printer driver 5.
[0026] In this embodiment, Application 2 is, for example, an application for editing posters. While Application 2 is assumed to be a native application pre-installed on PC100, it may also be a front-end program for a web application. Application 2 issues various drawing commands (image drawing commands, text drawing commands, or graphics drawing commands, etc.) to output the results of processes such as creation and editing. The drawing commands issued by Application 2 are input to the monitor driver 4 via the operating system 3. If the drawing commands relate to printing, they are input to the printer driver 5 via the operating system 3. The printer driver 5 is software that processes the input drawing commands to create print data and prints it to the printer 400. The monitor driver 4 is software that processes the input drawing commands to create display data and displays it on the display 110.
[0027] Application 2 creates output image data using text data classified as text, graphics data classified as graphics, and image data classified as images. The output image data can be displayed on display 110. For example, Application 2 displays a poster image of the output image data that can be created and edited by the user on the user interface screen of Application 2. Also, when Application 2 receives user instructions on the user interface screen and prints an image based on the output image data, it requests print output from operating system 3. In these cases, a set of drawing processing commands is issued to operating system 3, consisting of text drawing commands for the text data portion, graphics drawing commands for the graphics data portion, and image drawing commands for the image data portion.
[0028] The following describes the user interface screen displayed by Application 2, which allows users to create and edit poster images.
[0029] Figure 4 shows an example of the configuration of an editing screen, which has the function of placing and editing objects on a poster image, as implemented by Application 2 described above. Poster image 411 represents one page of the poster image being edited. The user can create a poster image by selecting templates and objects from tabs 412 to 417 and placing them on poster image 411.
[0030] Tab 412 is a button that can receive a command to display the template list. When the user selects Tab 412, a list of templates that can be applied to the poster image 411 is displayed in area 418. When the user selects a template from the template list, the selected template is applied to the poster image 411.
[0031] Tabs 413 to 417 are buttons that accept instructions to add various objects to the poster image 411. When the user selects tab 413, a list of texts that can be added to the poster image 411 is displayed in area 418. When the user selects tab 414, a list of shapes that can be added to the poster image 411 is displayed in area 418. When the user selects tab 415, a list of two-dimensional codes (e.g., QR code®) that can be added to the poster image 411 is displayed in area 418. When the user selects tab 416, a list of backgrounds that can be added to the poster image 411 is displayed in area 418. When the user selects tab 417, a list of images that can be added to the poster image 411 is displayed in area 418. The user can place the various contents selected in tabs 412 to 417 onto the poster image 411 using drag-and-drop operations, etc.
[0032] When the user selects button 420 in Figure 4, a print settings screen (not shown) for printing the edited poster image is displayed. When the user sets the paper type and other settings on the print settings screen and instructs the application to print, the application 2 issues various drawing processing commands based on the output image data, and these drawing processing commands are input to the printer driver 5 via the operating system 3. The printer driver 5 processes the input drawing processing commands to create print data and sends it to the printer 400. The printer 400 prints the poster image based on the print data received from the printer driver 5.
[0033] Figure 5 shows an example of the screen displayed when the user selects button 419 in the editing screen of Figure 4. Area 501 is the area for changing the document size. Button 502 is displayed in area 501. Button 502 displays the current document size of the poster image 411. Figure 5 shows that the currently set size, "A2," is displayed.
[0034] Area 503 is a dropdown list that appears when button 502 is pressed, displaying a selection of document sizes. By selecting a document size from the dropdown list, the user can change the current document size of poster image 411 from "A2" to the size selected in the dropdown list.
[0035] When the user selects a document size from the dropdown list, the selected document size is displayed on button 502. Additionally, if the user selects "Custom Size" in area 503, they can arbitrarily change the lengths of the short and long sides of the poster image.
[0036] Area 504 allows the user to specify the orientation of the document. Figure 5 shows the "portrait" orientation selected. When the user changes the orientation of the document, the change is reflected in the poster image 411. When the user presses button 505, application 2 closes area 501.
[0037] As described above, in Application 2, the original size of the poster image 411 can be changed by user operation on area 501. In this embodiment, as an example, the case in which the user changes the original size of the poster image 411 from "A4" to "Letter" will be described. Note that the above size change is described as an example, but is not limited to this example. Any other original size is acceptable as long as the aspect ratio of the original original size and the aspect ratio of the changed original size are different from each other.
[0038] Figure 6 shows an example of a screen where the original size of poster image 411 has been changed. Poster image 601 shows a poster image where the original size has been changed from "A4" to "Letter". When changing from "A4" to "Letter", the aspect ratios of "A4" and "Letter" are different. Therefore, as in poster image 601, if the layout of "A4" sized objects is maintained in "Letter" size, it will be converted to a layout with margins on the left and right. In that case, the user needs to adjust the layout to be optimal for a poster image with "Letter" original size by moving each object individually. Therefore, in this embodiment, a configuration for the user to change the original size without having to redo anything will be described.
[0039] Figure 7 is a flowchart showing the process for changing the document size in Application 2. The process in Figure 7 is achieved, for example, by the CPU 101 reading and executing a program stored in ROM 102.
[0040] In S701, the CPU 101 obtains the original document size and the modified document size. For example, the CPU 101 obtains the original document size and the modified document size based on the settings in area 501. In this embodiment, the original document size is "A4" and the modified document size is "Letter". Application 2 maintains a table 801 as shown in Figure 8. Table 801 associates the name of the document size with its width (horizontal) and height (vertical). The CPU 101 obtains the width and height associated with the name of the document size set in area 501 from table 801. Note that the document sizes in table 801 in Figure 8 are examples and are not limited to those sizes.
[0041] In S702, CPU101 obtains the position (coordinates) and size information of each object in the poster image of the original document size. When obtaining the position, the bounding rectangle of each object is extracted, and the position is obtained based on that bounding rectangle. In S703, CPU101 scales down the poster image of the original document size so that it fits within the converted document size, and places it in the center of the converted document size.
[0042] Figure 9 shows an example of a poster image with the original document size before conversion and a poster image with the converted original document size. Poster image 901 is the poster image with the original document size "A4". Poster image 902 is the poster image with the converted original document size "Letter". According to Table 801 in Figure 8, the original document size "A4" is 210 mm wide x 297 mm high, and the original document size "Letter" is 215.9 mm wide x 279.4 mm high. Therefore, in S703, the vertical length of the poster image with the original document size "A4" is reduced to match the vertical length of the poster image with the changed original document size "Letter" so that it fits within the changed original document size "Letter". Then, it is positioned in the center in the width direction of the changed original document size "Letter". Area 903 is the area corresponding to the reduced poster image 901.
[0043] In S704, the CPU 101 obtains the overhang width value 904 between the poster image 902 and the region 903. As shown in Figure 9, the overhang width value 904 is the length in the width direction.
[0044] From this point onward, the processes S705 to S708 are executed for each object within poster image 902.
[0045] In S705, the CPU 101 determines whether an object in the poster image 902 is touching or extending beyond the outer frame of region 903. Here, an object that is neither touching nor extending beyond the outer frame of region 903 is an object that is neither touching nor extending beyond the outer frame of region 903.
[0046] Figure 10 shows each object in poster image 902. As shown in Figure 10, the objects that are touching or extending beyond the outer frame of region 903 are shape 1001, image 1002, and text 1003. If it is determined in S705 that an object is neither touching nor extending beyond the outer frame of region 903, the process proceeds to S708. On the other hand, if it is determined that an object is touching or extending beyond the outer frame of region 903, the process proceeds to S706.
[0047] In S706, the CPU 101 determines whether the object under consideration is an image, a shape, or a background. If the object is an image, a shape, or a background, it is decided to change the size of the object. On the other hand, if the object is not an image, a shape, or a background, it is decided not to change the size of the object.
[0048] Objects that touch or extend beyond the outer frame of area 903 can be said to have a layout that takes the object's outer frame into consideration. Therefore, even if the original size is changed, it is desirable that the object be positioned along the outer frame of the poster image. On the other hand, for certain types of objects, from a printing perspective, it may be undesirable for them to touch or extend beyond the outer frame of the poster image. For example, if text or QR codes touch or extend beyond the outer frame of the poster image, there is a risk that the user will not be able to receive the correct information. Therefore, it is desirable to place such objects as far inside the poster image as possible. Accordingly, in this embodiment, if an object touches or extends beyond the outer frame of area 903 and is an image, graphic, or background object, it is decided to change the size of that object. The size of the object is then changed so that it touches the outer frame of the changed original size. On the other hand, if an object touches or extends beyond the outer frame of area 903 and is not an image, graphic, or background object, it is decided not to change the size of that object. That is, it remains positioned inside the changed original size. In Figure 10, it is decided to resize the objects 1001 and 1002, while it is decided not to resize the object 1003.
[0049] If the object type is determined to be an image, shape, or background in S706, the process proceeds to S707. On the other hand, if the object type is determined to be neither an image, shape, nor background, the process proceeds to S708.
[0050] In S707, CPU101 changes the size of the object, which has been determined to be resized, by the overflow width value of 904 obtained in S704.
[0051] Figure 11 shows poster image 902 after processing S707. Since the left and right sides of figure 1001 were touching the outer frame of region 903, the position of the left side was moved to the left by an overhang width of 904 units, and the position of the right side was moved to the right by an overhang width of 904 units. Although the top edge of figure 1001 was touching the outer frame of region 903, no movement was performed because the top edge of region 903 and the top edge of poster image 902 coincided. Since only one side of image 1002, the right side, was touching the outer frame of region 903, only the position of the right side was moved to the right by an overhang width of 904 units.
[0052] Furthermore, although not shown in Figure 10, if the right edge of image 1002 extends beyond region 903, it is determined in S705 that it is extending beyond the region, and the process proceeds to S707 via S706. In this case, the image is moved further to the right from the extended portion by an extension width value of 904. At this time, if the extension value at the extended portion is already greater than the extension value of 904, the position of the right edge of image 1002 may not be moved. Alternatively, image editing processing such as cropping may be performed so as not to change the aspect ratio of the image when it is resized.
[0053] In S708, the CPU 101 determines whether the processes in S705 to S707 have been executed for all objects in the poster image 902. If it is determined that the processes in S705 to S707 have not been executed for all objects, the process from S705 is repeated. On the other hand, if it is determined that the processes in S705 to S707 have been executed for all objects, the process proceeds to S709.
[0054] In S709, CPU 101 displays the layout result on the editing screen. Figure 12 shows an example of a poster image displayed at the converted original size. Poster image 1201 in Figure 12 corresponds to poster image 902 in Figure 11, and corresponds to the poster image after the original size has been converted from poster image 411 in Figure 4. Compared to poster image 601 in Figure 6, it can be seen that poster image 1201 in Figure 12 has no margins in the width direction.
[0055] Thus, according to this embodiment, it is possible to prevent layout distortion (changes) that occur when changing to a document size with a different aspect ratio. Specifically, as explained in S707, by changing the size of the object, the relationship between the outline of the object in the original document size and the outer frame of the original document size is maintained in the changed document size. In addition, although changing the size of the object was described as a layout change in this embodiment, the layout may also be changed by other methods such as moving the object.
[0056] In S703, it was explained that the poster image of the original document size is reduced in size. However, in S703, it is also possible to enlarge the poster image of the original document size. For example, the horizontal length of the poster image of the original document size "A4" may be enlarged to match the horizontal length of the poster image of the changed document size "Letter," and then centered vertically in the changed document size "Letter."
[0057] Figure 13 shows how a poster image of the original document size is enlarged in S703. Poster image 1301 in Figure 13 is an enlarged version of poster image 901 in Figure 9. Region 1302 corresponds to the document size "Letter". When enlargement is performed in S703, as shown in Figure 13, the shape 1001 and image 1002 extend beyond the outer frame of region 1302. In this case, in S704, the CPU 101 obtains the overhang width value 1303 from Figure 13. As shown in Figure 13, the overhang width value 1303 is obtained as a vertical value. In S705, the CPU 101 determines whether or not an object within the enlarged poster image 1301 is an object that extends beyond the outer frame of region 1302. For objects that are determined to be overflowing and that are determined to be of a predetermined type in S706, in S707, the size of the object to be resized is changed by the overflow width value of 1303 obtained in S704. For example, the position of the top edge of figure 1001 is moved down by the overflow width value of 1303. Also, for example, the position of the bottom edge of image 1002 is moved up by the overflow width value of 1303. Furthermore, whether poster image 901 is reduced or enlarged in S703, the user may be allowed to specify the objects to be resized. For example, the user may be allowed to specify the type of object that satisfies the conditions in S706.
[0058] As described above, according to this embodiment, when changing the document size, the object size can be changed without user intervention, thereby making the object layout suitable for the changed document size and improving convenience. Furthermore, with such a configuration, there is no need to prepare a template for appropriately arranging objects for each document size, thus preventing an increase in the amount of template data.
[0059] [Second Embodiment] The second embodiment will now be described in terms of its differences from the first embodiment. In the first embodiment, as shown in S706 in Figure 7, a determination was made based on whether the object was of a predetermined type, and the size of the object was changed by the overhang width value of 904 in Figure 9. However, even if an object is of a predetermined type, there are cases where the aspect ratio should not be changed. For example, in the case of an image object that a user wants to use as a logo, changing the aspect ratio or cropping is undesirable. Therefore, in this embodiment, a configuration will be described in which the method of changing the size for each object can be changed by the user.
[0060] Figure 15 shows an example of how an image object is selected within poster image 411 in the editing screen of Figure 4. Image object 1501 is the currently selected object within poster image 411. Control 1502 is a button for resizing image object 1501. Button 1503 is a button for deleting the selected image object 1501. Button 1504 is a button for the user to configure the object's settings. Figure 16 shows the screen when button 1504 is selected.
[0061] The dialog box 1601 in Figure 16 is a dialog box for configuring object settings. By selecting the checkbox 1602, the user can set whether or not to fix the aspect ratio of the image object 1501. In other words, the checkbox 1602 can accept instructions on whether or not to allow changes to the aspect ratio. Note that the default value of checkbox 1602 may be pre-set by application 2. Button 1603 is a button for closing the dialog box 1601.
[0062] Figure 14 is a flowchart showing the process for changing the document size in this embodiment. The process in Figure 14 is achieved, for example, by the CPU 101 reading and executing a program stored in the ROM 102.
[0063] Since the explanations for S1401 to S1406 are the same as those for S701 to S706 in Figure 7, their explanations will be omitted.
[0064] In S1407, the CPU 101 determines whether the aspect ratio of the object can be changed. For example, if the setting for checkbox 1602 in dialog 1601 is set to not fix the aspect ratio, the CPU 101 determines that the aspect ratio can be changed. If it is determined in S1407 that the aspect ratio can be changed, in S1408 the CPU 101 performs the same processing as in S707 in Figure 7. On the other hand, if it is determined in S1407 that the aspect ratio cannot be changed, the process proceeds to S1409.
[0065] In S1409, CPU101 scales the object in the direction of overflow while maintaining its aspect ratio.
[0066] Figure 17 shows the poster image after the S1409 process is executed. As shown in poster image 902 in Figure 17, the right edge of image object 1501 touches the outer frame of region 903. In S1409, the image object 1501 is enlarged until the position of the right edge touches the outer frame of poster image 1701, without changing the aspect ratio. Poster image 1701 shows the result after changing the position of the right edge of image object 1501 while maintaining the aspect ratio of image object 1501.
[0067] Since S1410 and S1411 are the same as those explained in S708 and S709 in Figure 7, their explanations will be omitted.
[0068] As described above, according to this embodiment, the user can set whether or not to fix the aspect ratio for each object. With such a configuration, the layout can be changed in accordance with the user's intentions.
[0069] [Third Embodiment] The third embodiment will now be described in terms of its differences from the first and second embodiments. When users living in various regions use the same application 2, the size used may differ even for the same template. For example, the size of the same template may differ between Japan and the United States. In this embodiment, when a user selects a template, the document size is automatically changed from the default size based on the user's regional information and the selected template information, and the template with the changed document size is displayed on the editing screen.
[0070] Figure 18 shows an example of the editing screen in Application 2 in the United States. Button 1801 is a button for the user to change the region setting. The user can set any region using button 1801. Note that the region setting in Application 2 may be done by other methods. For example, the system may obtain regional information such as the IP address where the user's PC 100 is located. Area 1802 is a template selection area, where the user can select any template.
[0071] Figure 19 is a flowchart showing the process that is executed when any template is selected from region 1802. The process in Figure 19 is achieved, for example, by the CPU 101 reading and executing a program stored in ROM 102.
[0072] In S1901, CPU 101 acquires regional information. This regional information is obtained, for example, based on the settings of button 1801 in Figure 18 and the IP address of PC 100.
[0073] In S1902, the CPU 101 acquires template information. In this embodiment, application 2 holds the template information 2000 shown in Figure 20.
[0074] Figure 20 shows an example of template information 2000. Column 2001 shows an ID for identifying the template, corresponding to each template displayed in area 1802. Column 2002 shows the default document size of the template associated with the template ID held by Application 2. Column 2003 shows the template size used for the USA region. Column 2004 shows the template size used for the JP region. Note that the default size may be different from or the same as the template size for each region.
[0075] In S1903, the CPU 101 determines the regional template size to be displayed in Application 2 based on the template ID selected by the user, the regional information obtained in S1901, and the template information obtained in S1902. Here, the regional template size is the template size corresponding to the user's region. For example, in this embodiment, suppose a user living in the USA selects a template with template ID "B" in area 1802. In that case, since the region is the USA, the regional template size is determined to be "Letter" size from the template information 2000 in Figure 20. Also, the default size for the template with template ID "B" is "A4" size. Note that in this embodiment, the default size is shown as one of the regional template sizes, but the configuration is not limited to this. For example, template data could be created in advance with an intermediate size between "A4" and "Letter" size, and that intermediate size could be set as the default size. With such a configuration, the average distance objects move when the layout is changed will be reduced regardless of which region is selected, allowing for more natural layout changes.
[0076] In S1904, CPU101 determines whether the regional template size obtained in S1903 matches the default size. If they do not match, the process proceeds to S1905. On the other hand, if they do match, the process proceeds to S1906, where CPU101 displays the default-sized template on the editing screen of application 2.
[0077] In S1905, CPU101 changes the document size from the default size to the regional template size. At this time, the layout of objects is changed in the same way as in the first and second embodiments. In other words, the operation of resizing the poster image in the first and second embodiments is applied to resizing the template in this embodiment. Then, in S1906, CPU101 displays the regional template size template with the changed object layout on the editing screen of application 2.
[0078] As described above, according to this embodiment, it is possible to display a template with an appropriate size suitable for the user's region and with objects properly laid out, thereby improving the user's convenience in editing templates.
[0079] In each embodiment, the PC100 was described as the device on which the editing screen of application 2 is displayed, but it can also be implemented using other devices. For example, a smartphone, tablet, image processing device such as a printer, or an internet kiosk terminal may be used instead of the PC100. Also, although a poster creation application was described as an example of application 2, it is not limited to poster creation, and the operation of each embodiment can be applied to other image editing applications as well.
[0080] The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.
[0081] The disclosure of this embodiment includes the following information processing apparatus, method, and program. (Item 1) A display control means that causes the image represented by the image data to be displayed on a display means, A receiving means for receiving a change in the original size of the image displayed on the display means, When the receiving means receives a request to change from a first document size to a second document size having a different aspect ratio from the first document size, the changing means changes the layout of the objects included in the image data based on the second document size. Equipped with, The display control means causes the display means to display the image of the second original size based on the object whose layout has been changed by the modification means. An information processing device characterized by the following: (Item 2) The information processing apparatus according to item 1, characterized in that the modification means changes the layout of an object by changing the size of the object included in the image data. (Item 3) The information processing apparatus according to item 2, characterized in that the modification means modifies the size of the object such that the relationship between the outline of the object included in the image data and the outer frame of the first document size is maintained even after the change from the first document size to the second document size. (Item 4) The information processing apparatus according to item 3, characterized in that the modification means changes the size of the object included in the image data so that it touches the outer frame of the second document size when the outer frame of the object included in the image data touches the outer frame of the first document size. (Item 5) The information processing apparatus according to any one of items 2 to 4, characterized in that the modification means provides a different method for changing the size of an object based on the settings of the object included in the image data. (Item 6) The information processing device according to item 5, characterized in that the setting is a setting of whether or not to allow a change in the aspect ratio of an object included in the image data. (Item 7) The information processing apparatus according to item 6, characterized in that, when the modification means is set to allow changes in the aspect ratio of an object included in the image data, it changes the size of the object by moving the position of at least one side of the outline of the object. (Item 8) The information processing apparatus according to item 6 or 7, characterized in that, if the modification means is set not to allow changes to the aspect ratio of an object included in the image data, it changes the size of the object by scaling it while maintaining the aspect ratio of the object. (Item 9) The information processing apparatus according to any one of items 1 to 8, characterized in that the object subject to the layout change by the modification means is a predetermined object. (Item 10) The information processing apparatus according to item 9, characterized in that the predetermined object is an object corresponding to at least one of an image, a figure, or a background. (Item 11) The information processing apparatus according to any one of items 1 to 10, characterized in that the image data is data representing a template. (Item 12) The information processing device according to item 11, further comprising a storage means for storing information relating the default size of the template to the size of the template according to the region. (Item 13) An acquisition means for acquiring regional information where the aforementioned information processing device is located, A determination means that determines whether or not to change the default size of the template based on the regional information obtained by the acquisition means, Furthermore, If the determination means determines that the default size of the template should be changed, the modification means changes the layout of the objects included in the data representing the template based on the size corresponding to the region represented by the regional information. The display control means causes the display means to display a template of a size corresponding to the region represented by the regional information, based on the object whose layout has been changed by the modification means. The information processing device described in item 12, characterized by the features described herein. (Item 14) A method performed in an information processing device, A display control process that causes the image represented by the image data to be displayed on a display means, A receiving step for accepting a change in the original size of the image displayed on the display means, If the acceptance process accepts a change from the first document size to a second document size having a different aspect ratio from the first document size, the process includes a modification step to change the layout of objects included in the image data based on the second document size, It has, In the display control step, the display means is made to display the image of the second original size based on the object whose layout was changed in the modification step. A method characterized by the following: (Item 15) A program for causing a computer to function as one of the means of the information processing device described in any one of items 1 through 13.
[0082] The invention is not limited to the embodiments described above, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, claims are attached to disclose the scope of the invention. [Explanation of Symbols]
[0083] 100 PCs: 200 Mobile devices: 300 Servers: 400 Printers: 101, 201, 301 CPU: 102, 202, 302 ROM: 103, 203, 303 RAM
Claims
1. A display control means that causes the image represented by the image data to be displayed on a display means, A receiving means for receiving a change in the original size of the image displayed on the display means, When the receiving means receives a request to change from a first document size to a second document size having a different aspect ratio from the first document size, the changing means changes the layout of multiple objects included in the image data based on the second document size. Equipped with, The modification means modifies the layout of a first object, which is an object of a first type included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the area of the first document size, so that the predetermined positional relationship is maintained with respect to the outer frame of the area of the second document size. Even if a second object is included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the area of the first document size, if the second object is of a type other than the first type, the layout of the second object will not be changed. The display control means causes the display means to display an image of the second original size based on the first object whose layout has been changed by the modification means and the second object whose layout has not been changed. An information processing device characterized by the following:
2. The information processing apparatus according to claim 1, characterized in that the modification means changes the layout of the first object by changing the size of the first object.
3. The information processing apparatus according to claim 1, characterized in that the predetermined positional relationship is that the outer frame of the object is in contact with the outer frame of the first document size.
4. The information processing apparatus according to claim 2, characterized in that the modification means causes the method of changing the size of the first object to differ based on the settings of the first object.
5. The information processing apparatus according to claim 4, characterized in that the setting is a setting of whether or not to allow a change in the aspect ratio of the first object.
6. The information processing apparatus according to claim 5, characterized in that, if the modification means is set to allow a change in the aspect ratio of the first object, it changes the size of the object by moving the position of at least one side of the outer frame of the first object.
7. The information processing apparatus according to claim 5, characterized in that, if the modification means is set not to allow changes in the aspect ratio of the first object, it changes the size of the first object by scaling it while maintaining the aspect ratio of the first object.
8. The information processing apparatus according to claim 1, characterized in that the first type of object is an object corresponding to at least one of an image, a figure, or a background.
9. The information processing apparatus according to claim 8, characterized in that the second object, which is not an object of the first type, is an object corresponding to at least one of text and a two-dimensional code.
10. The information processing apparatus according to claim 1, characterized in that the image data is data representing a template.
11. The information processing apparatus according to claim 10, further comprising a storage means for storing information relating the default size of the template to the size of the template according to the region.
12. An acquisition means for acquiring regional information where the aforementioned information processing device is located, A determination means that determines whether or not to change the default size of the template based on the regional information obtained by the acquisition means, Furthermore, If the determination means determines that the default size of the template should be changed, the modification means changes the layout of the multiple objects included in the data representing the template based on the size corresponding to the region represented by the regional information. The modification means modifies the layout of a first object, which is an object of a first type included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the default size, so that the predetermined positional relationship is maintained with respect to the outer frame of an area of a size corresponding to the region represented by the regional information. Even if a second object is included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the area of the default size, if the second object is of a type other than the first type, the layout of the second object will not be changed. The display control means causes the display means to display a template of a size corresponding to the region represented by the regional information, based on the first object whose layout has been changed by the modification means and the second object whose layout has not been changed. The information processing apparatus according to feature 11.
13. A method performed in an information processing device, A display control process that causes the image represented by the image data to be displayed on a display means, A receiving step for accepting a change in the original size of the image displayed on the display means, If the receiving process accepts a change from a first document size to a second document size having a different aspect ratio from the first document size, the process includes a modification step to change the layout of multiple objects included in the image data based on the second document size. It has, In the modification step, the layout of a first object, which is an object of a first type included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the area of the first document size, is modified so that the predetermined positional relationship is also maintained with respect to the outer frame of the area of the second document size. Even if a second object is included in the plurality of objects and is in a predetermined positional relationship with respect to the outer frame of the area of the first document size, if the second object is of a type other than the first type, the layout of the second object will not be changed. In the display control step, the display means is made to display an image of the second original size based on the first object whose layout was changed in the modification step and the second object whose layout was not changed. A method characterized by the following:
14. A program for causing a computer to function as one of the means of the information processing apparatus according to any one of claims 1 to 12.
Citation Information
Patent Citations
Image processing system, image processing method, template producing system, and template data structure
JP2005102127A
Information processing apparatus and information processing method
JP2010113479A
