# Adding an eps image to canvas

**URL:** <https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227>\
**Category:** Newbie\
**Tags:** graphics\
**Created:** [May 2, 2020, 11:50pm UTC](https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227 "2020-05-02T23:50:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro\_Pilloni](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alessandro_pilloni/32/20444_2.png) [@Alessandro\_Pilloni](https://root-forum.cern.ch/u/Alessandro_Pilloni)\
**Post date:** [May 2, 2020, 11:50pm UTC](https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227/1 "2020-05-02T23:50:49Z")

</div>

Dear all,

I’m trying to add a logo image to a histogram.

@couet I manage to add a png image, but if I save the canvas in postscript the quality is low.

I’d rather add an eps image, and found the [`${ROOTSYS}/tutorials/graphics/psview.C`](https://root.cern.ch/doc/master/psview_8C.html)  
However, I get the following error:

Error in ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove: The class TImagePlugin overrides TObject::Hash but does not call TROOT::RecursiveRemove in its destructor (seen while checking TASPluginGS).

Even if I simply try  
TImage::Open(“a\_file\_of\_mine.eps”);  
I get the same error.

Is it a bug, or some configuration problem?

Cheers,  
Alessandro

* * *

\_ROOT Version: 6.20-04  
\_Platform: Linux  
\_Compiler: g++ 9.3.0

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 4, 2020, 9:30am UTC](https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227/2 "2020-05-04T09:30:49Z")

</div>

This functionality relies on "gs’ being installed and working. Can you open the eps file using “gs” ?

---

<div class="post-metadata">

**Author:** ![Alessandro\_Pilloni](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alessandro_pilloni/32/20444_2.png) [@Alessandro\_Pilloni](https://root-forum.cern.ch/u/Alessandro_Pilloni)\
**Post date:** [May 4, 2020, 10:54am UTC](https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227/3 "2020-05-04T10:54:55Z")

</div>

Yes, I do. Ghostscript is in the standard location /usr/bin/gs

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 4, 2020, 11:09am UTC](https://root-forum.cern.ch/t/adding-an-eps-image-to-canvas/39227/4 "2020-05-04T11:09:02Z")

</div>

The error you get seems to be connected with some problem with RecursiveRemove.  
I am not completely sure what it means. Something should have changed.  
May be @pcanal anal has an idea.
