The thumbs for the latest Corel Draw files aren't generated anymore, even if sometime in the past we had them: viewtopic.php?f=62&t=29675
This is because now the CDR files are now in Open Office XML format.
So, take the engine used to open the Office files (IOW handle the CDR file as an zip archive and read the zip) and generate the thumb from thumbnail.png file inside the zip file.
The sample is here:
The thumbs for the latest Corel Draw files aren't generated anymore
Moderators: XnTriq, helmut, xnview, Dreamer
The thumbs for the latest Corel Draw files aren't generated anymore
m. Th.
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Re: The thumbs for the latest Corel Draw files aren't generated anymore
but i don't support open office files
Pierre.
Re: The thumbs for the latest Corel Draw files aren't generated anymore
My mistake: is Office Open XML format (and not Open Office XML) which XnView supports already - if you remember - see these posts in a recent thread:xnview wrote:but i don't support open office files
viewtopic.php?f=82&t=36929&sid=ce33a8ae ... 55#p148186
viewtopic.php?f=82&t=36929&sid=ce33a8ae ... 55#p148217
Btw you can test it by yourself using some Office files.
m. Th.
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Re: The thumbs for the latest Corel Draw files aren't generated anymore
no i don't support this format it's the thumbnail return by windows explorer...
Pierre.
Re: The thumbs for the latest Corel Draw files aren't generated anymore
Grrrr.... if you say so...xnview wrote:no i don't support this format it's the thumbnail return by windows explorer...
It is interesting though because my Explorer shows Corel & Inventor thumbs but XnView doesn't.
As I said elsewhere, it would be a golden occasion for you to support this - make a simple method/function/whatever having as a parameter the file name and the name of the preview and as a result will return the thumb. For example:
Code: Select all
image ExtractOOXMLThumb(string myFileName, myThumbName)
myThumb = ExtractOOXMLThumb('c:\foo\test.docx', 'thumbnail.emf')
This Method will treat c:\foo\test.docx as a zip file (you can temporarily rename it if you want) and extract from here the 'thumbnail.emf' (preferably in memory) and use it as a thumbnail.
The name of the thumb is dependent of the file format and I can provide it to you if you want.
m. Th.
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -