Mindset AI Documentation
  • General
    • Welcome
    • AI and Security
      • AI Guidelines
      • Security Q&A
      • AI Buyers Guide
  • Platform
    • Overview
    • Features
      • Welcome workflow
        • How to configure the Welcome workflow
        • Welcome workflow best practices
      • Onboarding workflow
        • How to configure the Onboarding workflow
        • Onboarding best practices
        • How to configure Single Sign-On (SSO)
        • How to Configure Multi Factor Authentication (MFA)
      • Knowledge workflow
        • Content Discovery
          • How to configure Content Discovery
          • Setting up the Content Discovery carousels
          • ‘Trending’ carousel calculations
        • Knowledge Banks
          • How to configure a Content Knowledge Bank
          • Learn about Synced Knowledge Banks
          • How to create Speakers
          • How to exclude Content from being visible
          • How to process PDF files
          • How to process SCORM files
          • Knowledge Bank best practices
          • Prompts
            • How to configure Prompts
            • Prompts best practices
        • Events
          • How to configure External Events
          • How to Configure Live Streaming Events
        • Knowledge workflow FAQs
      • Agents
        • How to configure the Agent workflow
          • How to add an Agent Disclaimer message
        • How to create Agents
          • Settings
          • Personality
          • Policy
          • Capabilities
            • Capabilities best practices
          • Tools
          • LLM (Beta)
          • Design
          • Knowledge
          • Bias
          • Testing
          • Preview
          • Access
        • Language Translation within Agents
    • Design
      • Navigation
      • Branding
      • Thumbnail Design
      • Images
        • SVG Images
        • Selecting the Right Image for your Application
    • Accounts
      • How to configure Accounts
      • How to configure Account branding
      • How to invite end-users to an Account
    • Humans
  • Developers
    • Embed SDK
      • Embed an AI agent: step by step guide
      • How to embed an agent in your site
      • Testing your Embedded Agent
      • Authentication
    • Mindset API
      • Mindset Public APIs
      • HTTP API
        • API Key authentication
        • API Servers
        • api-authenticate-embedded-user
      • REST API
        • Contexts API
        • Context Files API
        • Labels API
  • Analytics
    • Overview
    • ThoughtSpot
      • ThoughtSpot FAQs
        • Adding a logo or image to a liveboard
        • There is data missing from liveboard
        • Exporting raw data
        • Exporting data to a csv file
        • How to add a note to a liveboard
        • How to pin in a liveboard
        • Editing individual data visualizations in a liveboard
        • Thoughtspot Alerts
    • Connecting a BI tool
  • Integrations
    • Overview
      • Choosing Data for your Agent
      • Supported Files
    • Content management
      • Google Drive
        • Google Drive Integration Set-Up
      • SharePoint
        • SharePoint Integration Set-Up
      • Hubspot
      • Podbean
      • Wistia
      • WordPress
      • Dropbox
    • Communication
      • Microsoft Teams
      • Slack
    • Customer Management and Payment
      • Hubspot
      • Stripe
  • Support
    • Contacting support
    • Taking a screenshot on any laptop
    • Resizing & compressing images
    • Performing a hard refresh
    • Application loading time
    • Raise a support ticket
    • Service Level Agreement (SLA)
  • Mindset AI Website
  • Book a Demo
Powered by GitBook
On this page

Was this helpful?

  1. Platform
  2. Design
  3. Images

Selecting the Right Image for your Application

An introductory guide to selecting the right image for your application.

Why choose a PNG image file over a JPEG image file?

Choosing between PNG (Portable Network Graphics) and JPEG (Joint Photographic Experts Group) image formats depends on the specific requirements of your use case. Here are some reasons why you might choose PNG over JPEG:

  1. Lossless Compression: PNG uses lossless compression, which means that no data is lost when the image is compressed. This is particularly useful for images that require high fidelity and where preserving every detail is important, such as logos, graphics, and diagrams.

  2. Transparency Support: PNG supports alpha channel transparency, allowing parts of the image to be fully or partially transparent. This is essential for images that need to be overlaid on different backgrounds or composited with other elements without leaving a white or solid color background.

  3. Text and Graphics: PNG is better suited for images with text or sharp lines, such as screenshots, diagrams, or line art. JPEG compression can sometimes blur text and create artifacts around sharp edges due to its lossy compression algorithm.

  4. Simple Images with Large Areas of Uniform Color: PNG can be more efficient for simple images with large areas of uniform color, such as icons or logos, especially when those areas need to be transparent.

However, JPEG also has its advantages:

  1. Smaller File Size: JPEG compression is better optimized for photographs and images with complex color gradients. It can achieve much smaller file sizes compared to PNG while maintaining acceptable image quality.

  2. Widespread Support: JPEG is supported by nearly all web browsers, image editing software, and digital cameras. It's a ubiquitous format that's well-suited for sharing and displaying photos online.

  3. Progressive Loading: JPEG images can be encoded in a progressive format, allowing them to be displayed gradually as they download. This can provide a better user experience for web pages with large images.

In summary, choose PNG when you need lossless compression, transparency support, or when working with images containing text or graphics. Choose JPEG when file size and broad compatibility are more important, especially for photographs or images with complex color gradients.


Why choose a JPEG image file over an SVG image file?

  1. Photographic Images: JPEG is well-suited for photographs and images with complex color gradients, such as natural scenes or portraits. JPEG compression can maintain relatively high image quality while achieving smaller file sizes compared to SVG, especially for photographs.

  2. Broad Compatibility: JPEG is supported by nearly all web browsers, image editing software, and digital devices. It's a standard format for sharing and displaying images across various platforms. SVG support, while growing, is not as universal as JPEG support.

  3. Simplicity and Ease of Use: JPEG is a raster image format, which means it's composed of pixels. This makes it straightforward to use and edit with common image editing software. On the other hand, SVG is a vector format, which requires specific software and expertise to create and edit.

  4. Lossy Compression: JPEG compression is lossy, meaning some image data is discarded during compression. While this results in smaller file sizes, it can also lead to loss of image quality, especially when heavily compressed. However, for photographic images, the loss of quality may be acceptable.

However, there are scenarios where SVG might be preferred:

  1. Scalability: SVG is resolution-independent and can be scaled to any size without loss of quality. This makes it ideal for images that need to be displayed in various sizes, such as logos, icons, or graphics used in responsive web design.

  2. Vector Graphics: SVG is particularly suitable for images composed of geometric shapes, lines, and text. It's a perfect choice for graphics that require crisp edges and precise shapes, such as diagrams, charts, or illustrations.

  3. Interactivity and Animation: SVG supports interactivity and animation through JavaScript and CSS. This makes it a powerful choice for creating dynamic and interactive graphics, such as data visualizations or interactive maps.

In summary, choose JPEG over SVG for photographic images, broad compatibility, simplicity, and ease of use. Choose SVG over JPEG for scalable graphics, vector-based images, and when interactivity or animation is required.

PreviousSVG ImagesNextAccounts

Last updated 10 months ago

Was this helpful?