Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorchies David
latex_models
Commits
281db2bf
Commit
281db2bf
authored
Aug 10, 2017
by
Dorchies David
Browse files
Script de conversion des images au format EPS
parent
e6b71233
Changes
1
Hide whitespace changes
Inline
Side-by-side
convert_eps.bat
0 → 100644
View file @
281db2bf
@echo
off
:: Conversion de fichiers images au format eps compressé.
:: Nécessite l'installation de :
:: - ImageMagick https://www.imagemagick.org/script/download.php
:: - GhostScript https://sourceforge.net/projects/portableapps/files/Ghostscript%20Portable/
:: @param %1 Chemin du fichier image à convertir en eps
:: @return Fichier au format EPS nommé %1.eps
:: @usage convert_eps.bat [NomDuFichierAConvertir]
:: @warning Ne fonctionne pas avec les chemins comportant des espaces
:: @author David Dorchies
:: @date Juin 2017
:: Chemin du logiciel ImageMagick
SET
IM_PATH
=
C
:\DocDD\OnCld\Apps\ImageMagick
:: Chemin du logiciel GhostScript (gswin32.exe)
SET
GS_PATH
=
C
:\DocDD\OnCld\Apps\USBTeX
-
1
.7\programs\gs9.02\bin
:: Mise à jour du PATH pour que ImageMagick trouve GhostScript
SET
PATH
=
%PATH%
;
%GS_PATH%
;
"
%IM_PATH%
\convert"
"
%
1"
-compress
lzw
eps2
:
"
%
1.eps"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment