Author Topic: Batch Converter (PNG to VSS)  (Read 32609 times)

0 Members and 1 Guest are viewing this topic.

markem

  • Jr. Member
  • **
  • Posts: 50
Dimitry! Are you still here?
« Reply #15 on: October 28, 2018, 12:04:07 AM »
Hey! I hope you read this. I have been using your PNG2VSS program for a while. It is utterly fantastic. My problem is - I have thousands of files to load in to VSS files. So your program helps - but I need to be able to run it at the command level. I.E.: c:>png2vss <Directory to convert>.

Is this possible? Hopefully you will see and respond to this post.  Thanks if you do in advance!

By the way - if you have the source code still and do not want to work on this - let me have the source code and I'll work on it myself and give you back the code. :-)

Dmitry

  • Jr. Member
  • **
  • Posts: 18
Re: Batch Converter (PNG to VSS)
« Reply #16 on: October 28, 2018, 05:10:42 AM »
What you're asking for is already implemented. Look into manual, section 3.8.
The latest version is 5.4:
https://drive.google.com/file/d/1tR34z64zveZLo_nPxhL9wbdLJSiPPcmO/view?usp=sharing

markem

  • Jr. Member
  • **
  • Posts: 50
Re: Batch Converter (PNG to VSS)
« Reply #17 on: October 29, 2018, 10:04:41 AM »
First - a BIG THANK YOU to Dimitry! :-)

I had version 5.0 - this is version 5.4. Thanks again!

Now my findings:

There are problems with png2vss. These are not major problems or anything like that - more of a "Gotcha!" kind of problems with it. I'm posting these here to maybe help someone else who comes along after I am gone.

1. Directory structure. Under Windows 98se - Microsoft switched how a pathname could be separated. It used to be it had to be a backslash (\). Starting under Windows 98se Microsoft made it so you could use the blackslash or a forwards slash (/). I was trying to write a batch script and tying "/" is a lot easier than "\". Further, I was using PHP to write the script. So since PHP thinks a "\" means the next character is escaped (like a new line is "\n") - it stands to reason to use the "/". Anyway, IF YOU USE IT then png2vss will not work correctly. For some reason VB seems to think it is some kind of shortcut to some other location. In my case it sent the output to "C:/Windows/System32" directory. To be truthful - I have no idea why it really does this but it has to be something in VB.

2. There are two options "/F" and "/O". "/F" is for the files to read and insert into the library you are creating and "/O" is for the output. The output one has more problems. If you just run the program and then click to set the output file - the program will - if you leave it off - add a ".vss" to the name of the file. Batch life is different. Batch life YOU have to put the ".vss" onto the file. Otherwise - you wind up with an unknown file type. This isn't a biggie - just remember to always put the ".vss" onto the output file name and you will be ok.

3. The "/S" option. This option tells png2vss to run automatically. I would have thought it always would - but then that's just me. Now - here is the problem though. The program will not automatically close once it is through. You see - there is a check box for that. So BEFORE you start a batch job - bring up png2vss and check the "Close When Done" checkbox.

4. Batch files don't really work. What I mean is - I have about 2,000 image files that I wrote a PHP script to break up into chunks of 36 images each. (Yeah - lot of files there!) This program wrote out a batch script called t.bat. Imagine my surprise when I run t.bat and it runs the first command, finishes, and then .....dies. Yes. Kicked it right out of the batch script. So I'm like "Ok - I'll try it again". Dies. Take out that first command and run it again. Dies. I am not certain why it does this - it just does. My solution was to instead issue a separate SYSTEM command in PHP and send the command to it. It then dies, returns to the PHP script, which then continues to the next file. Again - no idea why it does this. Probably something to do with VB doing some kind of clearing of everything when it exits.

5. More options. Yes! Lots more options would be great! Here is a partial list:

5.1 "/C". Close When Done
5.2 "/US" Update Stencil
5.3 "/OS" Open Stencil
5.4 "/ST" Show Tooltips
and many more.... Basically, it would be nice to be able to do any of the options the program has from the command line.

So overall - this is an absolutely fantastic program! Just keep these things in mind when using them and I am really hoping Dimitry, if nothing else, puts in the extra options. Especially the "/C" option.

That's it! Have fun!