File:Test ImageUploadedToFreemindGallery.mm: Difference between revisions

From FreeMind
Jump to navigationJump to search
(Test to see if it is possible to upload a mindmap which links to an image already uploaded.)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Test to see if it is possible to upload a mindmap which links to an image already uploaded.
Test to see if it is possible to upload a mindmap which links to an image already uploaded.
Mindmap had two image nodes - one linking to an image on my local hard disk, the other node hacked to link to an image already uploaded to this wiki. 
'''Result:''' Temporarily linked to this mindmap from the Gallery page.  The image node referring to the file on my local PC appeared empty while the image node pointing at the image uploaded to this wiki appeared correctly.
'''Notes on how I did it:''' By hacking the source code of the mind map.  The image node pointing to a file on the local file system looked like:
<node CREATED="1291408674390" ID="Freemind_Link_1052039657" MODIFIED="1291408766796" TEXT="&lt;html&gt;&lt;img src=&quot;../../My Downloads/Python/IronPython/Tutorial/dialog2.jpg&quot;&gt;"/>
To link to an image uploaded to this wiki, I changed the source code to:
<node CREATED="1291408674390" ID="Freemind_Link_1052039657" MODIFIED="1291408766796" TEXT="&lt;html&gt;&lt;img src=&quot;http://freemind.sourceforge.net/wiki/images/c/cd/Dialog2.jpg&quot;&gt;"/>
In other words I changed the text in the src attribute of the img tag to point to the image.
To get the URL of the uploaded image:
When the image is uploaded it will be displayed in a wiki page (in this case http://freemind.sourceforge.net/wiki/index.php/Image:Dialog2.jpg).  Viewing the source of the wiki page will give the relative URL of the image (in this case the URL in the img tag was "/wiki/images/c/cd/Dialog2.jpg").  Prepending the root of the page's URL (http://freemind.sourceforge.net) to the relative URL of the image gives the absolute URL of the image: <nowiki>http://freemind.sourceforge.net/wiki/images/c/cd/Dialog2.jpg</nowiki>
NOTE: Just adding the relative URL of the image (/wiki/images/c/cd/Dialog2.jpg) to the mindmap node works just as well, when viewing the mindmap on this site via the Flash viewer.  However, the image will not appear in the original mindmap running on my local PC.

Latest revision as of 23:01, 3 December 2010

Test to see if it is possible to upload a mindmap which links to an image already uploaded.

Mindmap had two image nodes - one linking to an image on my local hard disk, the other node hacked to link to an image already uploaded to this wiki.

Result: Temporarily linked to this mindmap from the Gallery page. The image node referring to the file on my local PC appeared empty while the image node pointing at the image uploaded to this wiki appeared correctly.

Notes on how I did it: By hacking the source code of the mind map. The image node pointing to a file on the local file system looked like:

<node CREATED="1291408674390" ID="Freemind_Link_1052039657" MODIFIED="1291408766796" TEXT="<html><img src="../../My Downloads/Python/IronPython/Tutorial/dialog2.jpg">"/>

To link to an image uploaded to this wiki, I changed the source code to:

<node CREATED="1291408674390" ID="Freemind_Link_1052039657" MODIFIED="1291408766796" TEXT="<html><img src="http://freemind.sourceforge.net/wiki/images/c/cd/Dialog2.jpg%22>"/>

In other words I changed the text in the src attribute of the img tag to point to the image.

To get the URL of the uploaded image:

When the image is uploaded it will be displayed in a wiki page (in this case http://freemind.sourceforge.net/wiki/index.php/Image:Dialog2.jpg). Viewing the source of the wiki page will give the relative URL of the image (in this case the URL in the img tag was "/wiki/images/c/cd/Dialog2.jpg"). Prepending the root of the page's URL (http://freemind.sourceforge.net) to the relative URL of the image gives the absolute URL of the image: http://freemind.sourceforge.net/wiki/images/c/cd/Dialog2.jpg

NOTE: Just adding the relative URL of the image (/wiki/images/c/cd/Dialog2.jpg) to the mindmap node works just as well, when viewing the mindmap on this site via the Flash viewer. However, the image will not appear in the original mindmap running on my local PC.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current20:46, 3 December 2010 (905 bytes)SimonTeW (talk | contribs)Test to see if it is possible to upload a mindmap which links to an image already uploaded.

There are no pages that use this file.