File:Test ImageUploadedToFreemindGallery.mm: Difference between revisions
No edit summary |
No edit summary |
||
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. | 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">"/> | |||
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. |
Revision as of 22:56, 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:
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/Time | Dimensions | User | Comment | |
---|---|---|---|---|
current | 20: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. |
You cannot overwrite this file.
File usage
There are no pages that use this file.