How to get Previews of Corel Draw files (.cdr)

5,516 views
Skip to first unread message

Chaitanya Sevak

unread,
Jun 26, 2012, 12:32:43 PM6/26/12
to resour...@googlegroups.com
Hi,

The resource-space is nice application. I was wondering if it can generate preview for Corel Draw (.cdr) files. It does stores a thumbnail in its metadata but when I uploaded in RS, the previews was not generated.

Thanks

Paul A Norman

unread,
Jun 27, 2012, 3:12:31 AM6/27/12
to resour...@googlegroups.com
Dear Chaitanya,

As far as I know there is no built in support for Corel Draw yet, but if you are a php developer  you may like to look at this Open Source project, UniConvertor to see if some sort of ResourceSpace auxiliary helper is achievable, as is already done for OpenOffice/LibreOffice files etc...

When I looked at the pictures of UniConvertor I thought it was a GUI driven application but it is actually a shell/ command line application (with an optional GUI helper),  but it requires Python (Windows version installation is self-contained).


A write up...


Amongst this list (from the dowloaded applications doc drierctory / about.html)  it appears that it could potentially help with a few things that perhaps ResourceSpace does not already deal with directly...

  • CorelDRAW ver.7-X3,X4 (CDR/CDT/CCX/CDRX/CMX)
  • Adobe Illustrator up to 9 ver. (AI postscript based)
  • Postscript (PS)
  • Encapsulated Postscript (EPS)
  • Computer Graphics Metafile (CGM)
  • Windows Metafile (WMF)
  • XFIG
  • Scalable Vector Graphics (SVG)
  • Skencil/Sketch/sK1 (SK and SK1)
  • Acorn Draw (AFF)
  • HPGL for cutting plotter files(PLT)
  • Autocad Drawing Exchange Format (DXF)
  • DST design format (Tajima)
  • PES embroidery file format (Brother)
  • EXP embroidery file format (Melco)
  • PCS design format (Pfaff home)
However it only directly exports to ...
  • AI (Adobe Illustrator ver.5.0 format)
  • SVG (Scalable Vector Graphics)
  • SK (Sketch/Skencil format)
  • SK1 (sK1 format)
  • CGM (Computer Graphics Metafile)
  • WMF (Windows Metafile)
  • PDF (Portable Document Format)
  • PS (PostScript)
  • PLT (HPGL for cutting plotter)

Paul

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.

Dan Huby

unread,
Jun 27, 2012, 11:06:25 AM6/27/12
to resour...@googlegroups.com


On Wednesday, June 27, 2012 8:12:31 AM UTC+1, PaulANormanNZ wrote:
Dear Chaitanya,

As far as I know there is no built in support for Corel Draw yet, but if you are a php developer  you may like to look at this Open Source project, UniConvertor to see if some sort of ResourceSpace auxiliary helper is achievable, as is already done for OpenOffice/LibreOffice files etc...

That's interesting, thanks for posting. Uniconvertor is available as a package on Ubuntu making installation easy on that platform.

It would be good to have ResourceSpace support this natively, however an interim solution might be to configure ImageMagick to call it when importing supported file types.

Dan 

Paul A Norman

unread,
Jun 28, 2012, 9:09:09 PM6/28/12
to resour...@googlegroups.com
" Uniconvertor is available as a package on Ubuntu making installation easy on that platform "

Yes it appears to be available across a wide range of OSes

Paul

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/_KpApec0keUJ.

Chaitanya

unread,
Jun 30, 2012, 1:13:46 AM6/30/12
to resour...@googlegroups.com
Hi Dan,

I did not get what is meant by - ' It would be good to have ResourceSpace support this natively, however an interim solution might be to configure ImageMagick to call it when importing supported file types. '

I am sorry but can you please elaborate...

Thanks

Chaitanya Sevak

unread,
Jul 7, 2012, 5:25:17 AM7/7/12
to resour...@googlegroups.com
Hi Team,

You can get Corel Draw (.cdr) Preview  by inserting following code to preview_preprocessing.php at line 302

Note : Following code only works for coreldraw version X4 or greater.
We tested with windows system, it does not work but on Linux machine it works properly.

//Added to get previews of coreldraw(.cdr) files       
if (($extension=="cdr") && !isset($newfile))
    { 
        run_command("unzip -p ".escapeshellarg($file)." \"metadata/thumbnails/page1.bmp\" > $target");
        if(file_exists($target)) { $newfile = $target; }
    } 

If it suits for larger audience, kindly accept this code change into ResourceSpace.

Thanks,
Chaitanya

Paul A Norman

unread,
Jul 8, 2012, 8:30:01 AM7/8/12
to resour...@googlegroups.com
Thanks for that,

"Note : Following code only works for coreldraw version X4 or greater."

We have a lot of Corel XII (12) files...

Paul

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.

Oğuz GÜLBAY

unread,
Jul 9, 2012, 1:50:35 AM7/9/12
to resour...@googlegroups.com
As far as I know, Coreldraw 12 files has tiny bmp's as preview files. So even if you can get the previews, it probably won't be much good anyway.

Paul A Norman

unread,
Jul 9, 2012, 2:21:46 AM7/9/12
to resour...@googlegroups.com
Yes we'd need to do the kind of conversion routines looked at earlier I think.

Paul

Chaitanya Sevak

unread,
Jul 9, 2012, 8:48:14 AM7/9/12
to resour...@googlegroups.com
I am not sure about versions below X4 as it needs conversion as rightly said by Paul.
Reply all
Reply to author
Forward
0 new messages