Open a gif when clicking on an image.

416 views
Skip to first unread message

AdCs

unread,
May 23, 2012, 2:43:10 PM5/23/12
to latexus...@googlegroups.com
Hi!

I want to put in my pdf an image so that when I click on it a gif would pop up. Here's the my code:

\begin{figure}
\centering
  \href{run:imagenes/pars.gif}{
      \includegraphics[scale=0.50]{myImage} // In .cls: \graphicspath{imagenes}
    }
    \caption{My image}
    \label{fig:my_image}
\end{figure}

The pdf is compiled, but when I click on the image, evince shows this message:
Unable to launch external application. Failed to execute child process "eog" (Permission denied)

Any idea?
Thanks.


Peter Flynn

unread,
May 23, 2012, 3:56:57 PM5/23/12
to latexus...@googlegroups.com

sudo apt-get install eog

Eog is Eye-Of-Gnome, an image display utility.

P

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/latexusersgroup/-/68tO0qrCEI8J.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

AdCs

unread,
May 23, 2012, 6:16:13 PM5/23/12
to latexus...@googlegroups.com
Hi Peter,
eog is installed.

I think the key here is that thing of "Permission denied". What I don't know is why opening a gif from my pdf is forbidden.

Ole Peter Smith

unread,
May 23, 2012, 7:10:37 PM5/23/12
to latexus...@googlegroups.com

Permission denied would come from the operating system. Eog no executable or the graphics file not readable. Also check whately command theo OS associates with the eog extension.

0le

Send via Android

--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/latexusersgroup/-/olaaIl34GF4J.

AdCs

unread,
May 23, 2012, 10:17:43 PM5/23/12
to latexus...@googlegroups.com
Hi Bangkok,
I can open the gif with Eog perfectly. Just to make sure, I changed the permissions of the image to 777(I know that is a bit risky, but what the...).
Still the same problem.


Also check whately command theo OS associates with the eog extension

Did you mean the gif extension? It is opened with Eog.

Or do you have in mind something else?

Thanks!

Ole Peter Smith

unread,
May 23, 2012, 11:14:09 PM5/23/12
to latexus...@googlegroups.com
On Wed, May 23, 2012 at 11:17 PM, AdCs <acsa...@gmail.com> wrote:
> Hi Bangkok,
> I can open the gif with Eog perfectly. Just to make sure, I changed the
> permissions of the image to 777(I know that is a bit risky, but what
> the...).

From the command line (prompt):

# eog /full/path/to/file

> Still the same problem.
>
>
> Also check whately command theo OS associates with the eog extension
>
> Did you mean the gif extension? It is opened with Eog.

In Nautilus, rightcliking a file, it's extension has one or more
programs associated with it, defined in 'Open with'. You may try
another viewer!?

0le


>
> Or do you have in mind something else?
>
> Thanks!
>

> --
> You received this message because you are subscribed to the Google Groups
> "LaTeX Users Group" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/latexusersgroup/-/8ZBKStnJgWoJ.


>
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to
> latexusersgro...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/latexusersgroup?hl=en.

--
                                            /////
                                         ( O O )
=================oOO==(_)==OOo=================
            Every day and every hour, I'm Learning more
          The more I Learn, the less I Know about before
         The Less I know, the more I want to Look around
             Diggin' deeper into Higher Ground...  UB40
                                   .oooO Oooo.
==================(     )=(     )=====================
                                     \  (     )  /
                                      \_)   (_/
===============================================
                        Ole Peter Smith, IME, UFG
    http://www.mat.ufg.br/docentes/olepeter - ole at mat.ufg.br
===============================================
                   Life sure is a Mystery to be Lived
                      Not a Problem to be Solved
===============================================

Peter Flynn

unread,
May 24, 2012, 7:22:24 PM5/24/12
to latexus...@googlegroups.com
If the GIF itself is global-read, the only thing I can think of is that the eog binary is not global-execute, which would be odd. Or the PDF reader is trying to do something weird with it, like run eog in a restricted subshell which has no permission to write to your X server.

The way PDF readers handle links is very weird anyway. One version of Okular, for example, tried to open Konqueror when I clicked on a link to a http resource. Kpdf did the same. Konqueror? WTF uses Konqueror these days? What they ought to be doing is executing $BROWSER or whatever the symbol is called.

///Peter

Gildas Cotomale

unread,
May 25, 2012, 12:34:30 AM5/25/12
to latexus...@googlegroups.com
> If the GIF itself is global-read, the only thing I can think of is that the
> eog binary is not global-execute, which would be odd. Or the PDF reader is
> trying to do something weird with it, like run eog in a restricted subshell
> which has no permission to write to your X server.
>
Yes, it must be a permission issue.
I first thought about the file permission, but it may fail anywhere else...

> The way PDF readers handle links is very weird anyway. One version of
> Okular, for example, tried to open Konqueror when I clicked on a link to a
> http resource. Kpdf did the same. Konqueror? WTF uses Konqueror these days?
> What they ought to be doing is executing $BROWSER or whatever the symbol is
> called.
>
Sure, some apps are written for some environments or desktop with some
nasty shortcuts. This is typically a bug and a ticket should be opened
for that. But it may be intentional and then shouldt be mentioned in
an explicit way and packages dependences must be added.
Reply all
Reply to author
Forward
0 new messages