5/11/2023 0 Comments Inkscape mac slowSo is there any way I can bypass this ?ĮDIT 2: So after giving the permissions on the folder I have no output from the script anymore, files are created but it still takes an insane amount of time compared to running directly on the server. The operations performed inside the Inkscape are prolonged like a turtle. Theres another downside of Inkscape is most designers complain about is its slow speed. It is not much advanced, like what weve seen in the above graphic design apps. But it seems those are configurations of inkscape that I probably don't need for what I'm doing. Its an open-source graphic design app available for Windows and Mac users. I'm not sure I should give permissions to those folders to apache. ** (inkscape:31344): WARNING **: Could not create extension error log file '/usr/share/httpd/.config/inkscape/extension-errors.log' ** (inkscape:31344): WARNING **: Unable to create profile directory (Permission denied) (13) ** (inkscape:31337): WARNING **: Could not create extension error log file '/usr/share/httpd/.config/inkscape/extension-errors.log' ** Message: Inkscape will run with default settings, and new settings will not be saved. ** Message: Cannot create profile directory /usr/share/httpd/.config/inkscape. This is the output I get when running from php : ** (inkscape:31337): WARNING **: Unable to create profile directory (Permission denied) (13) So it seems the problem is some waiting because of missing permissions even though the files are finally created. Is there any way I can speed this up ? Is there any other way I can make this conversion other than inkscape ?ĮDIT : So I have tried running a shell script instead and it takes the same time, however, if I run the script directly on the server it takes way less time. This is really long and I don't see it scaling well with multiple users on the site uploading files at the same time.Īlso running only one command does not improve the time, it still takes about 12 seconds per command. When logging the times $epsTime and $svgTime I get about 12 seconds everytime. $this->replaceExtension($targetFile, 'svg') $this->replaceExtension($targetFile, 'eps') $ext = pathinfo($targetFile, PATHINFO_EXTENSION) $this->getFilenameWithExtension($targetFile) Move_uploaded_file($tempFile, $targetFile) $targetName = $this->santitizeFilename($_FILES) To do this, I convert from ai or eps to eps (to remove any artboard or white spaces around the file) and then to svg.Īll this is done after upload of original file with this PHP code : if(!empty($_FILES)) I need to convert ai and eps files to svg to use with a product customization tool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |