Back to the main page.

Bug 882 - facilitate the editing and updating of SVG figures on the wiki

Status CLOSED FIXED
Reported 2011-08-18 10:20:00 +0200
Modified 2014-02-24 10:56:28 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2011-08-18 10:20:53 +0200

it is a lot of work to update the SVG figures. It would be easier to have them synched to h:/common/matlab/fieldtrip


Robert Oostenveld - 2011-08-18 10:23:15 +0200

I have created a shell script which is executed automatically every 10 minutes which 1) updates the svn figures from the wiki to home/common 2) updates the svn figures from home/common to the wiki if you update the figure on home/common, it should overwrite the one on the wiki. I have not yet tested it, but you can try it out: the figures are on /home/common/matlab/fieldtrip/data/wiki/media and match the page/directory layout of the wiki.


Robert Oostenveld - 2011-08-18 10:23:54 +0200

@Lilla: please give it a try


Lilla Magyari - 2011-08-31 11:30:01 +0200

(In reply to comment #2) > @Lilla: please give it a try hi Robert, I have tried it. When I copy a file to home/common it will appear also in the media browser of the fieldtrip site. It hasn't copy a file, however, that was called home/common/matlab/fieldtrip/data/wiki/media/trf_pipeline2 copy.svg. Is it because it is a copy of an other file with the same name (there is also a file called tfr_pipeline2)? And I can't delete files neither from home/common or from the website. Lilla


Robert Oostenveld - 2011-08-31 12:56:59 +0200

the space in the filename might be an issue. Deleting on either side is indeed not implemented. If you delete on one side, the file will be recreated by the sync. The only way to get rid of a file is to delete it on both sides simultaneously.


Lilla Magyari - 2012-07-04 13:57:40 +0200

Regarding SVG figures on wiki: My latest information is that when an svg file is uploaded the font-types are changing to a "default" which looks quite ugly. I do not know if this is still a problem, but an alternative solution is to upload figures in two versions (svg and png) and letting the png to appear on the website.


Lilla Magyari - 2012-07-04 14:01:35 +0200

Can I add this latest comment (= If you experience difficulties with the appearance of the svg files on the wiki, you can upload the figure in svg and also in png format, and insert png to the website) to the documentation guidelines? http://fieldtrip.fcdonders.nl/documentation_guidelines


Robert Oostenveld - 2012-07-04 18:49:45 +0200

(In reply to comment #6) The person uploading might not see the ugly font, whereas someone else does. So I don't think that these instructions to the uploader would help.


Lilla Magyari - 2013-07-23 23:11:46 +0200

(In reply to comment #7) I do not know whether we should close this bug. I reassign it. Lilla


Robert Oostenveld - 2013-10-10 11:24:22 +0200

I have a script running regularly that does SRC=roboos@fieldtrip.fcdonders.nl:/var/www/fieldtrip.fcdonders.nl/data/media/ DEST=/home/common/matlab/fieldtrip/data/wiki/media/ chmod -R 777 $DEST rsync -vaurP --include="*.svg" --include="*.jpg" --include="*.png" --exclude="*.*" $SRC $DEST rsync -vaurP --include="*.svg" --include="*.jpg" --include="*.png" --exclude="*.*" $DEST $SRC i.e. copy the media files between the wiki server and the /home/common/matlab/fieldtrip/data/wiki/media/ directory. In that home/common directory you can quickly update a figure (i.e. crop the bitmaps, or make some other small change). The figure will them be copied back to the wiki.


Robert Oostenveld - 2014-02-24 10:56:28 +0100

I closed several bugs at once that all have been resolved for some time. If you disagree, please reopen.