tavinus / pdfScale

Bash Script to Scale and Resize PDFs using Ghostscript
MIT License
246 stars 37 forks source link

Add windows tips in documentation #46

Closed moltenform closed 3 months ago

moltenform commented 10 months ago

This workaround resolved the file-not-found errors I got otherwise.

(What's happening is that when there are parameters beginning with a leading slash like /Bicubic , msys mistakenly thinks it is a filepath and adds a prefix. The exported flags turn off that behavior (for git-for-windows and msys2 at least, vanilla msys1 still might run into the problem).)

moltenform commented 3 months ago

Thank you!

tavinus commented 3 months ago

Added a lot of stuff in the past 2 days. Did you have a chance to test it?

EDIT: The funny part is that I used cygwin to develop the last few versions and I never needed to do any of that. Just had to install ghostscript and libgs from the .exe installer. Installing from apt-cyg didn't get all the dependencies.

moltenform commented 3 months ago

Added to my calendar to do some tests in the next few days.

Yes, it's always worked in cygwin. When I'm running from an msys shell, though, that's when I ran into it. Appreciate the merge and will send an update!

tavinus commented 3 months ago

Just pushed another version.

It now parses the URL for the main target uploaded (the folder or file you uploaded).

I also added some colors to the verbose output. Colors are set on variables and called by functions. It would be extremely easy to add custom themes (would be nice to get some themes from other people). For now anyone can just change the color variables at the beginning of the program.

LOL .. nevermind, I got confused. I just pushed the cloudsend script, not this one. https://github.com/tavinus/cloudsend.sh