Is it me or is 'save for web' totally broken in Illustrator CS6, when saving a file with a space in the filename? First it says the file already exists (whether or not this is the case) and when I click 'replace' it just doesn't do anything. Tried with different files, even after relaunching Illustrator.
I'm on a mac as well. Even if it put a space there, I'd still call it broken. A space works just fine on the web – albeit ugly in URLs – but people use the SFW feature for much more than just the web. In previous versions of Illustrator there was this file compatibility setting that allowed you to turn this behavior off. Where is it in CS6?
Like Wade says, it is not good practice to use spaces in file names for the web.
In fact one should avoid spaces in all file (and folder) names. They can amongst other things lead to confusion between mismatched operating systems.
I have even seen a space in a folder name render the enclosed Illustrator file unreadable.
Not sure why it was but it had something to do with the addressing of linked image files. As soon as we altered the folder name and adjusted the links, everything returned to normal.
I think that the point is, 2012 or not, what you want to do is still not a best practice. That Adobe evidently is attempting to enforce something about best practices doesn't bother me a bit.
So save it out using a best practices name and change the name to suit.
Good luck, Mike
That Adobe evidently is attempting to enforce something about best practices doesn't bother me a bit.
I don't think Adobe is trying to enforce anything. It's just that spaces in file and folder names CAN cause trouble. It doesn't always happen and you may get away with using them, but by doing so you appear to be running a certain risk.
I have been in the business for more years than I care to remember and have seen errors that could be traced to spaces maybe a couple of times since OS X.
More common are file name errors caused by obscure glyphs. ð, þ, æ, ö and accented characters, especially ý, are the most common culprits in my neck of the woods.
Steve, if you use any of these characters in your file name, does Illustrator fix them as well?
If it does, using what algorithm? If it does not, does it do *anything* else to "protect" users from creating bad filenames?
I think Lensco has a valid point here. To err is human -- Lensco should be allowed to save his images with a Bad Name.
I just tried saving a filed called "ýþæöð asdfgh.png". Illie doesn't do anything other than I asked her to do.
However I doubt that such a file would be useable on a web page.
I also discovered recently that files with an asterix (*) in their names are not accepted by some servers.
The files can be inserted as images but somehow don't show up.
I think that may have been "best practices" in the ancient days of computing, but as the OP said, we're now well into the second decade of the Twenty-first Century and computers can handle spaces. I'm not sure, but I think IIS has been handling spaces in filenames for a long time.
The best thing to do is test it with the Web server you're using.
If Adobe products can't handle linked files with paths having spaces in them, then it's high time Adobe fixes that, and it should be reported as a bug. (All it takes is changing the code to add double-quotes around the fully-qualified path.)
I still hate SFW changing my file naming convention to suit itself.
I'll try to explain this bu it may go by you.
The feature is to Save for the Web. If Adobe offers a feature and users are using the feture for other things that is fine as long as it works for the user.
But is Adobe responsible to a user who is using a feature in a way it is not intended to be used. The answer is no. they are not responsible it is not intended to be used that way.
The thing then but you want them to be responsible for your deeds when they are not.
Now on the other hand if you have a legitimate feature request for such a feature design for other purposes or you wish them to expand on such a feature you can easily make a feature request.
Of course Adobe might come back on this one and tell you to purchase a suite that included Fireworks for instance which cn save a file optimized and with a space in the name. And you can copy and paste or from AI or you canopen an ai file in fireworks.
Now you may disagree but I wonder if it will do ou any good.
If I were you and saw a need I would file a feature request.
It has worked for me many times over the years so I think it could work for you.
Well, Adobe forces one to use "Save For Web" in order to acces a whole lot of options, such as specific file formats, sizes, etc., all of which are useful even if the final resting place of the image is not on the Web. SFW is the only place to do that.
I'm not even sure what Ai's "Export" uses for PNG. Is it PNG-8 or PNG-24?
Are you saying that if Adobe simply duplicated everything in SFW and included the feature by naming it "Save With Options", that's the only way they should allow saving a filename with spaces?
And how does Photoshop CS6 handle this? Does its SFW automatically remove spaces in the filename?
I just re-read your post -- are you saying that Fireworks SFW keeps the spaces in the filenames? Or does Fireworks simply use the SFW interface but merely re-labels the function something like "Save Optimized"?
So, after almost half a year, Illustrator CS6 still has a simple reproducible bug that eats files. (Try to replace an image with a space in its filename using save for web.) What am I supposed to think of this?
Depends on the web server as to why spaces in filenames may or may not work. Though this works on more servers nowadays, would urge you not to run that risk or use colons or backslashes in filenames. When Mac OSX first came out the popular "• filenames" made bullet named files invisible, or if you logged back in OS9.
Here are 2 contemporary examples where having spaces or special characters in a filename results in an error:
- images or links used in Constant Contact emails, where the image or link is tracked
- images used in the MODX Content Management System
In both these cases, it's a bit of an oversight on behalf of the developer, but regardless, the problem only shows up when the filenames fall outside these (older) best practices.