SpiralFromImage icon indicating copy to clipboard operation
SpiralFromImage copied to clipboard

Linux: SVG file is missing or inaccessible

Open iKap opened this issue 8 years ago • 1 comments

When running on Linux I got in terminal window the message

/home/igor/Doc/.../IgorBeardTune_300x250.png was processed and saved as IgorBeardTune_300x250.svg
The file "/home/igor/Doc/Polargraph/SpiralFromImage/application.linux64/\IgorBeardTune_300x250.svg" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

Note on image name \IgorBeardTune_300x250.svg it with a back slash ahead ! Checking on the disk folder shows that it contain with a proper name -rw-r--r-- 1 igor igor 257 Jan 12 13:10 IgorBeardTune_300x250.svg

Code investigation shows the next String svgLocation = sketchPath("")+""+"\\"+imageName+".svg"; removing "\\"+ fixing a problem and I got my spiral svg image It could be a fix but I don't know how it will works on Windows now.

iKap avatar Jan 12 '17 11:01 iKap

note a comment // Doesn't work for me. Filename issue?

seems like a "filename issue" has been found out

// Doesn't work for me. Filename issue?
void displaySVG () {
  clearDisplay();
  String svgLocation = sketchPath("")+""+imageName+".svg";
  outputSVG = loadShape(svgLocation);
  println("loaded SVG: "+sketchPath("")+"Output"+"\\"+outputSVGName+".svg");
  shape(outputSVG, 187, 85, outputSVG.width/2, outputSVG.height/2);
  feedbackText.setText(locImg+" was processed and saved as "+outputSVGName);
  feedbackText.update();
}

iKap avatar Jan 13 '17 10:01 iKap