Apps
Knowledge
People
Register
Login


-
- Content .- Fans (10) .- Knowledge Base  . 

[OC < 5!] SVG Editor

   0.2-beta8  

ownCloud Productivity

Score 58%
CBiXCBiX
private
Home
[OC < 5!] SVG Editor
zoom


[OC < 5!] SVG Editor
zoom


[OC < 5!] SVG Editor
zoom


Homepage:  http://ocsvg.cbix.de
Version Control:  Link
Issue Tracker:  Link
Forum:  Link
other:  Link
other:  Link
Minimum required   ownCloud 4
Maximum required   ownCloud 4.5
Downloads:  3367
Submitted:  Mar 25 2012
Updated:  May 7 2013

Description:

Open, manipulate and create SVG files inside ownCloud. Export to PNG or PDF supported.

Work in progress: Version 1.0 will probably get collaborative drawing for different backends (e.g. a remote etherpad lite setup)!




Changelog:

(please see RELEASE file)

2012/06/25 - beta8/0.2
Note: 1.0 with many new features will be released shortly after ownCloud 5!
* fixed compatibility issues

2012/05/26 - beta7/0.2
* full compatibility for ownCloud 4.0 (still downwards compatible!)

2012/05/10 - beta6/0.2
* important security fix
* print button
* workaround for magic_quotes_gpc

2012/04/19 - beta5/0.2
* using a better maintained fork of jsPDF by willowsystems
* changing possibly irritating error messages on saving
* bug fixes:
* font size correctly set on PDF export
* always asking to overwrite existing file

2012/04/16 - beta4/0.2
* bug fixes:
* use native confirm dialog if OCdialogs is not available
* fixed asynchronous svg saving bug

2012/04/15 - beta3/0.2
* PDF export (using jsPDF)
* PNG export working better (because of the canvas preview)
* complete new saving dialog, integrates export
* create new image from file manager
* bug fixes:
* no saving error if mtime=0
* close button working

2012/04/04 - beta2/0.2
* PNG export (depending on browser's canvas capabilities)
* got rid of quit confirmation dialog when nothing has changed
* major bug fixes

2012/03/30 - beta1/0.2
Changing everything by using svgedit 2.6 (trunk version)
Release notes:
* using svgedit 2.6:
* many new features
* works in WebKit
* gradients working
* svg-edit dropdowns working
* using ownCloud control bar:
* saving works
* open preferences dialouge

2012/03/25 - alpha (internal version 0.1)
This is the first release with most things working!
Release notes:
* open svg file
* save svg file in editor
* save under different names
* most of svg-edit features working




LicenseLGPL
All Versions
Send to a friend
Subscribe
Other  Apps  from CBiX
Report inappropriate content

. . ..


goto page:  1  2 

-

 Uninstallable

 
 by nscomputing on: Mar 30 2012
 
Score 50%

When I try to activate it I got this error in the log:
"App does not provide an info.xml file" .


Reply to this

-

 Re: Uninstallable

 
 by CBiX on: Mar 30 2012
 
Score 50%
CBiXCBiX
private
Home

For now you have to install it manually:

1. download the app's zip file
2. exctract it
3. copy the folder "files_svgedit" into your owncloud's /apps/ directory
4. activate it

When uploading this I didn't know what file format apps have to be >.< sorry...


Reply to this

-

 Re: Re: Uninstallable

 
 by nscomputing on: Mar 30 2012
 
Score 63%

Hi Florian,

Thanks for your prompt reply.
I did exactly that and now I am wondering what is all about.

Cheers,
Slobodan


Reply to this

-
.

 Re: Re: Re: Uninstallable

 
 by CBiX on: Mar 30 2012
 
Score 50%
CBiXCBiX
private
Home

Hi Slobodan!

With my app you can manipulate vector graphics in SVG format :) But to do this you first have to upload an SVG file to your owncloud and then start the editor by simply clicking on that file! I put a demo installation here: http://ocsvg.cbix.de/demo

I recently made an update to the app (from alpha version to beta1) that is now available right here on the app repo - this may now work out of the box =) Please tell me about your experiences with it!


Reply to this

-

 Re: Re: Re: Re: Uninstallable

 
 by nscomputing on: Mar 31 2012
 
Score 50%

Hi Florian,

Your demo is working perfectly.
I have installed your newest version ( ocsvg-0.2-beta1) and still no success.
In my ownCloud installation svg files are not recognised as svg mime-types ( they have text icon and opens with the Text Editor ). SVG Editor is enabled, there is no error massages in the Log any more. My PHP version is 5.2 and could be a problem.

Thanks for this application. It is very important for me and I will try hard to get it working.


Reply to this

-
.

 Re: Re: Re: Re: Re: Uninstallable

 
 by CBiX on: Mar 31 2012
 
Score 50%
CBiXCBiX
private
Home

man, I found the mistake! One of those stupid ownCloud core developers changed one function name in OC_Filesystem from is_writeable() to is_writable() since the version 3 >.<

To make my app working, go to apps/files_svgedit/ and change "is_writeable" to "is_writable" in index.php

Please report your results!


Reply to this

-

 Re: Re: Re: Re: Re: Re: Uninstallable

 
 by nscomputing on: Mar 31 2012
 
Score 50%

In my ownCloud installation (v3) this function is properly and consistently named as "is_writeable" .



-

 doesnt work in current master?

 
 by nilsja on: Apr 2 2012
 
Score 50%

hi cbix, is there a trick to make it run in the current OC master? The mimetype is recorgnized correctly but when i click on a .svg file, i only get a white page...


Reply to this

-

 Re: doesnt work in current master?

 
 by CBiX on: Apr 2 2012
 
Score 50%
CBiXCBiX
private
Home

Hey nils,

yeah, sorry, I recently had no time (or motivation <.<) to fix this, but the newest version from my git repo should work with your ownCloud.. just do following:

$ cd yourowncloud/apps
$ rm -rf files_svgedit
$ git clone git://git.code.sf.net/p/ocsvg/code files_svgedit


Reply to this

-
.

 Re: Re: doesnt work in current master?

 
 by CBiX on: Apr 8 2012
 
Score 50%
CBiXCBiX
private
Home

btw., it's fixed in release 0.2-beta2, I tested with ownCloud stable 3.0, 3.0.1 and unstable master. But as I explained in description, PNG export doesn't work everytime, I didn't find out yet what it's depending on :-/

And I promise next beta release will have basic (only simple text and graphics) PDF export ;)


Reply to this

-

 Re: Re: doesnt work in current master?

 
 by nilsja on: May 18 2012
 
Score 50%

in v4RC the app from your git looks like this: https://ownid.net/owncloud/public.php?service=files&token=a769f5b7c18ac461c01648e2629cfe2b025d8f7b&file=/Bildschirmfoto%20vom%202012-05-18%2012%3A16%3A36.png


Reply to this

-

 Re: Re: Re: doesnt work in current master?

 
 by CBiX on: May 21 2012
 
Score 50%
CBiXCBiX
private
Home

Nils, I'm not responsible for things not working with unstable (git) versions ;D Do you also have any issues with the latest beta version..?


Reply to this

-

 Save to svg error - beta4/0.2

 
 by nscomputing on: Apr 17 2012
 
Score 50%

I managed to install it (ownCloud 3.0.2)

Works:

-Open and edit svg file
-Create new image file (with svg extension )
-Editing in svg editor
-Save png
-Save pdf

Doesn't work:

-Save svg (good svg file overwritten with blank svg file)


Reply to this

-

 Re: Save to svg error - beta4/0.2

 
 by CBiX on: Apr 17 2012
 
Score 50%
CBiXCBiX
private
Home

Actually that's a bug from beta3 and already fixed, but I'll take a look at this as soon as possible. Thanks for reporting this!


Reply to this

-

 beta5/0.2

 
 by nscomputing on: Apr 19 2012
 
Score 50%

Still having error saving svg.
Save PNG and PDF working fine


Reply to this

-

 Re: beta5/0.2

 
 by CBiX on: Apr 19 2012
 
Score 50%
CBiXCBiX
private
Home

Thanks for reporting - that's odd to me as I tested it with both ownCloud stable version and git version... Does it work when clicking "Save" twice? Please test my demo instance on http://ocsvg.cbix.de/demo with the same browser and report your results!


Reply to this

-

 Re: Re: beta5/0.2

 
 by nscomputing on: Apr 19 2012
 
Score 50%

Your demo works with no errors. Tested with Chrome, Firefox on OSX and Debian Squeeze.

My ownCloud 3.0.2 is on Apache2 server with PHP 5.2 (Debian Lenny). This could be a problem. Will update my server this weekend and test it again.


Reply to this

-

 Re: Re: Re: beta5/0.2

 
 by CBiX on: Apr 22 2012
 
Score 50%
CBiXCBiX
private
Home

Thanks, please report your results!

Anyway, do you get any errors in your ownCloud or apache logs? Or does it only save an empty file? Cause if it saves empty file without any error message it's most likely a javascript/client side bug...


Reply to this

-

 Re: Re: Re: Re: beta5/0.2

 
 by nscomputing on: Apr 22 2012
 
Score 50%

Server updated: PHP 5.3.3-7 , but no success with SVG Editor. There is no errors in ownCloud and Apache logs.
I just checked saved svg file and I have discovered that it is not empty, but It was not properly formatted. All double-quotes are escaped. Sometimes once, but I found one file with double-quotes escaped tree times.

Here is an example:

Quote:
<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" standalone=\\"no\\"?>
<svg width=\\"640\\" height=\\"480\\" xmlns=\\"http://www.w3.org/2000/svg\\">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
<g>
<title>Layer 1</title>
<circle id=\\"svg_1\\" r=\\"89.55445\\" cy=\\"160\\" cx=\\"123\\" stroke-width=\\"5\\" stroke=\\"#000000\\" fill=\\"#FF0000\\"/>
</g>
</svg>


When I manually edit this source ( unescape double-quotes ), I can open it with SVG Editor. I hope this information will be helpful in tracking of the source of this error.


Reply to this

-

 Re: Re: Re: Re: Re: beta5/0.2

 
 by CBiX on: Apr 24 2012
 
Score 50%
CBiXCBiX
private
Home

Hi again,

I'm really sorry, but I can't reproduce this behaviour, nor with any stable release of ownCloud (3.0.x) nor with a git snapshot version! You can consider changing the js/ocsvgEditor.js file around line 130 to the following (notice the svg.replace() call):
Quote:

$('#svgSaveBtn').click(function() {
svgCanvas.getSvgString()(function(svg, error) {
var btn = $('#svgSaveBtn');
btn.val(t('files_svgedit', 'Saving...'));
ocsvg.setFileContentsSvg(svg.replace(/\\*\"/g, '"'));
ocsvg.setFilePath($('#svgSavePath').val());


it might solve your problem or cause other problems, though it normally isn't necessary...


Reply to this

-

 Resolved

 
 by nscomputing on: Apr 25 2012
 
Score 50%

Sorry, it was PHP setting "magic_quotes_gpc = On" causing this double-quote escaping.

Thank you very much for your help and your ownCloud contributions.


Reply to this

-

 Re: Resolved

 
 by CBiX on: Apr 25 2012
 
Score 50%
CBiXCBiX
private
Home

Thanks for telling me your solution, I'll include a workaround in the next release that checks for the magic_quotes_gpc option!



-
.

 New Graphic

 
 by Tuti on: May 23 2012
 
Score 50%
TutiTuti
dirtico.cr

The new graphic option is not working u_u


Reply to this

-
.

 Re: New Graphic

 
 by CBiX on: May 23 2012
 
Score 50%
CBiXCBiX
private
Home

Hi Tuti,

Thanks for your feedback! Could you please tell me which version of ownCloud you are using?

Cheers,

Florian


Reply to this

-

 Re: Re: New Graphic

 
 by Tuti on: May 23 2012
 
Score 50%
TutiTuti
dirtico.cr

ownCloud 4.0
The new realese.


Reply to this

-
.

 Re: Re: Re: New Graphic

 
 by CBiX on: May 25 2012
 
Score 50%
CBiXCBiX
private
Home

Ok, I didn't even manage to install the app, but I'm gonna work on this now :)


Reply to this

-
.

 Re: Re: Re: New Graphic

 
 by CBiX on: May 26 2012
 
Score 50%
CBiXCBiX
private
Home

Please remove the installed files_svgedit app and install it again, the latest update should fix your issues :)


Reply to this

-
.

 Re: Re: Re: Re: New Graphic

 
 by Tuti on: Jun 1 2012
 
Score 50%
TutiTuti
dirtico.cr

Great, Thanks!


Reply to this

-

 Export to pdf trouble

 
 by arm2arm on: Jul 18 2012
 
Score 50%

When I have shapes with arbitrary rotation they become vertical or horizontal aligned after render to pdf.
The PNG and SVG are working properly.
I use OC4.0.4 with SVG Editor 0.2-beta8.


Reply to this

-

 Re: Export to pdf trouble

 
 by arm2arm on: Jul 18 2012
 
Score 50%

I just added demonstration of it in your web page:
http://ocsvg.cbix.de/demo/files/index.php

testrotation.svg

The ovals after pdf rendering are aligned horizontally or vertically.


Reply to this

-
.

 Re: Export to pdf trouble

 
 by CBiX on: Jul 18 2012
 
Score 50%
CBiXCBiX
private
Home

Hi arm2arm,

I know about this issue and can't correct it without much time consuming work, which I sadly can't afford at the moment.

But let me explain it to you:

The SVG Editor app is not completely written by me. In fact, I took many pieces from other people (which is legal, because their projects are Open Source), put them into one project, managed them to work together inside ownCloud and added some extra features myself. The main part comes from the svg-edit(https://code.google.com/p/svg-edit/) project and provides the editor itself.

For PDF export I'm using the jsPDF(https://github.com/willowsystems/jsPDF) code and some wrapper functions(https://github.com/CBiX/svgToPdf.js) written by myself. In fact I have totally no clue about PDF generation, so I can only use the things that the jsPDF project provides me, which are:

  • text

  • rectangles

  • circles

  • ellipses

  • lines

  • colors


  • Functions like transformation, transparency and paths can be done with PDF, but there is no way to do it with jsPDF yet and I would have to read through the whole PDF specifications by Adobe (http://www.adobe.com/devnet/pdf/pdf_reference.html) (140 pages) to implement these myself :O To let the users know that PDF rendering is incomplete, the app manipulates the preview so it doesn't contain rotations, paths etc.

    But there is a way ...

    If you have a so called "PDF Printer" installed (or use Ubuntu Linux which has one included), press the "Print" button in the SVG Editor and make it a PDF that way!


    Reply to this

    goto page:  1  2 

    Add commentBack



    ... .

    -
     
     Who we are
    Contact
    Register
    Explore
    Apps
    Knowledge
    People
    Participate
    Add App
    Public API
    About apps.ownCloud.com
    Legal Notice
    Report Abuse
     

    Copyright 2011-2017 apps.ownCloud.com Team  
    All rights reserved. apps.ownCloud.com is not liable for any content or goods on this site.
    All contributors are responsible for the lawfulness of their uploads.