SID-02364: How to link to an image on another page with a small version
| Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
|
| Category: |
CategoryAttachments |
Server OS: |
RedHat Linux 6.6 |
Last update: |
6 years ago |
How to link to an image on another page with a small version of the image (like a thumbnail) without installing the thumbnail plugin.
--
TWiki Guest - 2018-07-11
Discussion and Answer
You can use the attachment URL of any TWiki topic. For example,
TWiki06x00.TWikiDashboardImages has an image file attached to it called
brainstorming-meeting.jpg.
Link to it by writing this in RAW edit:
%PUBURL%/TWiki06x00/TWikiDashboardImages/brainstorming-meeting.jpg
To get this inline image:
If you put that image URL into an HTML img tag you can resize it, either manually, or with the WYSIWYG editor. Write this in RAW edit:
<img src="%PUBURL%/TWiki06x00/TWikiDashboardImages/brainstorming-meeting.jpg" width="200" />
To get this scaled inline image:
See docs at
FileAttachment.
--
Peter Thoeny - 2018-07-12
Now I would like to click on the small image and that would take me to the large image on the other page.
--
TWiki Guest - 2018-07-12
Enclose the thumbnail into a link. Write this in RAW edit:
[[TWiki06x00.TWikiDashboardImages][<img src="%PUBURL%/TWiki06x00/TWikiDashboardImages/brainstorming-meeting.jpg" width="200" />]]
To get this scaled inline image:
--
Peter Thoeny - 2018-07-12
The "thumbnail" just links to this page
https://twiki.org/cgi-bin/view/TWiki06x00/TWikiDashboardImages. I'm trying to link to the brainstorming-meeting.jpg image on that page.
Any idea how to do that?
--
TWiki Guest - 2018-07-13
Use the link of the image, e.g.
%PUBURL%/TWiki06x00/TWikiDashboardImages/brainstorming-meeting.jpg instead of
TWiki06x00.TWikiDashboardImages in the TWiki link.
--
Peter Thoeny - 2018-07-15
When I click on "scaled inline image" above it takes me to the top of the page that the image is on, not the actual image.
What happens when you click on the "scaled inline image" above?
--
TWiki Guest - 2018-07-16
Did you give up?
--
TWiki Guest - 2018-07-18
It will show just the image alone. Did you try?
--
Peter Thoeny - 2018-07-19
Yes I tried it. Clicking on the "scaled inline image" above takes me to the top of the page that the image is on, not the image alone. I'm using Firefox 52.8 and IE 11.0 works the same way.
--
TWiki Guest - 2018-07-23
I meant did you try what I suggested to you on 2018-07-15. Please read my comment again. Then edit your own test topic to try.
--
Peter Thoeny - 2018-07-24
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.