Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 52109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:51:20+00:00 2026-05-10T16:51:20+00:00

Our application has a file format similar to the OpenDocument file format (see http://en.wikipedia.org/wiki/OpenDocument

  • 0

Our application has a file format similar to the OpenDocument file format (see http://en.wikipedia.org/wiki/OpenDocument) – i.e. zipped with a manifest file, a thumbnail image, etc.

I notice that OpenOffice files have a preview image of the Open Office file as their icons, both in Windows and in Linux. Is there some way to accomplish this for our files: i.e. I want a dynamic icon based on the internal thumbnail.png?

Edit 1 Wow, thanks for all the quick answers. Thumbnailer looks great for the GNOME world. Windows I’ll be looking into those links, thanks. As for the comment question: programmatically OR via our installer.

Edit 2 Oh, forgot Mac. How about on the Mac? (Sorry Mac lovers!) Also are there any links or info for how OpenOffice does their IconHandler stuff – since ours would be very similar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:51:20+00:00Added an answer on May 10, 2026 at 4:51 pm

    Windows

    What you need is an Icon Handler, also known as a Thumbnail Handler. Here is an example written as an active x control.

    Another resource is to look up Property Handlers, which should also point to you to the latest and greatest way of having dynamic meta data handled correctly in windows.

    These are dynamic solutions – they aren’t needed if you just want an icon associated with all your files – they are only used when you want windows explorer to display an icon based on what’s in the file, not just the extension, and when the file changes the icon is updated to reflect the changes. It doesn’t have to be an image of the file itself, either, the thumbnail handler can generate any image based on the file contents.

    The property handler updates other metadata, such as song or video length, so you can use all the metadata Windows Explorer supports.

    Regarding MAC support, this page says, ‘The Mac and Windows operating systems have different methods of enabling this type of thumbnail, and in the case of the Mac OS, this support has been inconsistent from version to version so it hasn’t been pursued [for Adobe InDesign].’

    OS X

    Icons for Mac OSX are determined by the Launch Services Database. However, it refers to a static icon file for all files handled by a registered application (it’s not based on extension – each file has meta data attached that determines the application to which it belongs, although extensions give hints when the meta data doesn’t exist, such as getting the file from a different OS or file system)

    It appears that the dynamic icon functionality in OSX is provided by Finder, but searches aren’t bringing up any easy pointers in this direction. Since Finder keeps changing over time, I can see why this target is hard to hit…

    Gnome

    For Gnome you use a thumbnailer. (thanks Dorward)

    This is an extraordinarily simple program you write, which has 3 command line arguments:

    • input file name, the file you are describing with the thumbnail (or URI if you accept those instead)
    • output file name, where you need to write the PNG
    • size, a number, in pixels, that describes the maximum square image size you should produce (128 –> 128×128 or smaller)

    I wish all systems were this simple. On the other hand this doesn’t support animation and a few other features that are provided by more difficult to implement plugins on other systems.

    KDE

    I’m a bit uncertain, but there are a few pointers that should get you started. First is that Konqueror is the file manager and displays the icons – it supports dynamic icons for some inbuilt types, but I don’t know if these are hardcoded, or plugins you can write. Check out the Embedded Components Tutorial for a starting point.

    There’s a new (ish?) feature (or planned feature…) called Plasma which has a great deal to do with icons and icon functionality. Check out this announcment and this initial implementation.

    You may need to dig into the source of Konqueror and check out how they did this for text files and others already implemented.

    -Adam

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 77k
  • Answers 77k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You cannot directly invoke system commands or run an executable… May 11, 2026 at 3:32 pm
  • added an answer On many systems, you will find that getpid() is a… May 11, 2026 at 3:32 pm
  • added an answer Take a look at GCov: http://gcc.gnu.org/onlinedocs/gcc/Gcov.html May 11, 2026 at 3:32 pm

Related Questions

I'd like to encourage our users of our RCP application to send the problem
I currently work with an Oracle database and we use stored procedures for all
I'm about to decide how to handle internationalisation of an XML-based format for UI
We want to be able to create log files from our Java application which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.