Image Best Practices
Overview
Format images to the appropriate size before uploading them into the File Manager. This is true for all images, whether they are being used in the image menus, as icons, or elsewhere. Keep the following in mind:
- Be consistent with the image sizes.
- Icons will be scaled up/down based on how big the group headers are.
- The recommended maximum image size is 100px by 100px.
Follow these naming convention and file management best practices for images:
- All lower case
- No special characters
- Short, descriptive names
- Group images together in File Manager folders; organize according to Oracle CPQ functional areas
Administration
Using Images in the Header & Footer
Using Images in Config
- Easy-to-recognize Image Menus are the most useful. Use the same image size within the Image Menu for continuity.
- A simple object on a white background is most effective. Avoid using a photograph with scenery/details that may be confusing or distract from the focus of the image.
- Using product logos encourages brand recognition, and they are easily identifiable.
- Display the selection's details above or below the image for clarity, unless the name appears in the image, or the information is directly obvious from the image.
- Avoid using a large number of selections in the Image Menu.
- Too many images in a Grid Image Menu can clutter your page and cause confusion.
- Too many images in a drop-down Image Menu can cause unnecessary scrolling.
- Be mindful of image size.
- An image that is too large increases page load time, and if overused, clutters your page.
- An image that is too small can be difficult to see, and details can be lost.
Using images in Group Labels
- Useful for branding, design consistency, and visual appeal.
- Can help to differentiate Groups. This makes the page feel more organized and structured.
- Be mindful of image size.
Using Images in the Commerce Process
- Images can provide a visual cue of where the user is in the process. Example: a chain of images depicting "Pending Approval > Under Review > Finalized".
- Current stage is highlighted, while future stages are grayed out.
- Quickly communicates what stage the user is currently in, and what stages are left.
- This gives the user a sense of progress and adds visual appeal.
Using Images in Document Engine
Using Images in File Manager
Replacing Default Icons
Replace a file in File Manager only in situations where it is absolutely necessary. Follow these steps to determine the best approach:
- To hide the icon, follow best practices for hiding elements within the CSS. For more information, see the topic Styling Best Practices.
- Confirm that the icon is not used anywhere else in the site where you wouldn't want it changed.
- Identify if the icon image is defined in the HTML or CSS. This will determine how you can change the image.
- HTML-defined icons: If the image URL is located within the HTML, then the URL cannot be edited to display a different image. You must replace the file itself in File Manager.
- Confirm that you wish to replace this image site-wide. Check the rest of the site to see where else the image may be used.
- Create a copy of your old image before you place your replacement image in the File Manager.
- CSS-defined icons: If you do not see the image URL in the HTML, find the CSS that assigns the image URL via a "background" or "background-image" line. You can replace this image with a new file and altered CSS.
- Add your replacement image to the File Manager
- Using the new image's URL, manually override the background-image value in the stylesheet.
- You have flexibility with the specificity of your icon replacement because it is not site-wide. You can replace the icon only in certain places and leave it alone elsewhere.
Maintain a record of any files you have replaced or added in the File Manager. This helps ensure a smooth migration from test to production.
Your replacement icons should be created or edited by a professional.
The icon should be an image that is either not owned or copyrighted by any entity, or is owned or copyrighted by an entity that has given permission for its use.
The icon should be created or edited in a program like Photoshop that preserves transparency.
PNG is the recommended format for new files.
Example: No existing image URL
- View the HTML source.
-
You find that there is no image URL, but only the following code:
<div class="action-icon action-icon-visible line-item-edit" actionid="4654394" title="Edit"></div>
Note the following CSS code with the URL:
.line-item-edit {
background-image: url("/img/gxt/edit.png");
}
- Obtain an approved image, preferably of the same height/width.
- Upload this image to File Manager as
edit_new.png
. For more information on secure files, see the topic File Manager.
-
Enter the Alt or Commerce stylesheet and properly override the URL, such as with the following sample code:
.action-icon-bar .line-item-edit {
background-image: url("/img/gxt/edit_new.png");
Example: Existing image URL
- You wish to use a blue plus icon instead of a green one in your Commerce Action button, Add Line Items.
-
View the HTML source. It shows you that the plus icon URL is written in the HTML itself:
<img border="0" src="/bmfsweb/myClient/image/Icons/add.png" style="width: 16px; height: 16px; top: -1px; left: -3px; position: absolute;">
-
Replace your add.png
image in the File Manager.
A background image won't override the code.
- Make a reminder for future migrations that this file needs to be replaced.
Notes
Images can be secured within the File Manager, for more information, see the topic File Manager.
Images can be added to the Mobile Home Page Punch-Ins using the image Browse/Upload function, located on the Admin Home Page.
The recommended maximum image width and height: 235 px by 150 px.
For more information on Mobile, see the topic Mobile Overview.
Related Topics
See Also