Salome HOME
eca8e187838ee87f1b4e150fc0f3b1583876ccf1
[modules/med.git] / doc / dev / sphinx / images / convert.sh
1 #!/bin/sh
2 # Copyright (C) 2007-2023  CEA, EDF
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 factor="50%"
22 listfiles="\
23     medop-gui-aliasfield.png \
24     medop-gui-result.png \
25     medop-gui-selectfield.png \
26     medop-gui-visufield.png"
27
28 for file in $listfiles; do
29     echo "Processing file $file ..."
30     bn=$(basename $file .png)
31     outfile=$bn"_scale.png"
32     convert -scale $factor $file $outfile
33 done
34
35