#!/bin/sh
#] 
#] *********************
#] $ bash "$d_bin"'image library run.sh' 
# www.BillHowell.ca  01Jun2025 initial 
# view in text editor, using constant-width font (eg courier), tabWidth = 3


#24************************24




#24************************24
# List of operators, generated with :
# $ grep  "^#]"  "$d_bin"'image library run.sh' |  sed "s/^#\]/  /"  >"$d_bin"'image library run.sh'' TblOfCont.txt' 
# REPL $ sudo pinn_arcArch  "$d_bin"'image library runs.txt' 
# REPL $ sudo pWrkSpcL_arcArch  "$d_bin"'bash read-eval-print loop/wrkSpc image library.txt'
#




# +--+
# build summary of key points : 
#kp# 
#kp# *********************
#kp# "$d_bin"'image library run.sh'
#kp# 
# $ grep  "^#kp#"  "$d_bin"'image library run.sh'  |  sed  's|^#kp#|  |'  >"$d_bin"'image library run.sh'' TblOfKeyPoints.txt' 
#08********08
# Setup 

source  "$d_bin"'image library.sh'



#08********08
# code 

#] pImgL_sizX_sizY_scale_dOut_run		#() re-scale images of pImgL, output to dOut (all same scale)
# 31May2025 initial

	pImgL_sizX_sizY_scale_dOut_run()
{
	# 31May2025 tests 
	#pImgL="$d_projMin"'Mythology/Magical Egypt/images/5_pImgL test1.txt'
	#d_Out="$d_projMin"'Mythology/Magical Egypt/images/'
	#pImgL_sizX_sizY_scale_dOut  "$pImgL"  220  125  "$d_Out"

	# 01Jun2025 all raw images in MagicEgypt 
	#$ find  "$d_projMin"'Mythology/Magical Egypt/images/raw/'  -type f  -name  "*.png"  >"$d_projMin"'Mythology/Magical Egypt/images/5_pImgL all raw.txt'
	#pImgL="$d_projMin"'Mythology/Magical Egypt/images/5_pImgL all raw.txt'
	#d_Out="$d_projMin"'Mythology/Magical Egypt/images/'
	#pImgL_sizX_sizY_scale_dOut  "$pImgL"  220  125  "$d_Out"

	# 01Jun2025 fix single image 
	# pImgL="$d_projMin"'Mythology/Magical Egypt/images/5_pImgL fix 1 image.txt'
	# d_Out="$d_projMin"'Mythology/Magical Egypt/images/'
	# pImgL_sizX_sizY_scale_dOut  "$pImgL"  220  125  "$d_Out"

	# 01Jun2025 fix single image 
	# pImgL="$d_projMin"'Mythology/Magical Egypt/images/5_pImgL fix image DVD3 04:08.txt'
	# d_Out="$d_projMin"'Mythology/Magical Egypt/images/'
	# pImgL_sizX_sizY_scale_dOut  "$pImgL"  440  472  "$d_Out"

	# 08Jun2025 fix single image 
	pImgL="$d_bin"'images/pImgL_sizX_sizY_scale_dOut Howell- radioisotopes and history, image.txt'
	d_Out="$d_web"'ProjMajor/Sun civilisations/'
	pImgL_sizX_sizY_scale_dOut  "$pImgL"  500  500  "$d_Out"

}


#] pXYImgL_scale_dOut_run					#() re-scale images of pImgL to different [X,Y], output to dOut
# 01Jun2025 initial
# note that the output scale (X or Y, usually only one) is usually specified in html, eg :
#		<IMG SRC="dirFbase.jpg"  NAME="imgName"  BORDER=0  ALIGN=RIGHT  height=350>

	pXYImgL_scale_dOut_run()
{
	#pTabSepL_printCells  "$d_projMin"'Mythology/Magical Egypt/images/6_pXYImgL_scale_dOut non-locals test 1 file.txt'  
	# 01Jun2025 OK - worked just reading columns.  I had used read -r, but that is for user input, not file.
	
	pXYImgL_scale_dOut  "$d_projMin"'Mythology/Magical Egypt/images/6_pXYImgL_scale_dOut non-locals test 1 file.txt'  "$d_projMin"'Mythology/Magical Egypt/images/'

	#pXYImgL_scale_dOut  "$d_projMin"'Mythology/Magical Egypt/images/6_pXYImgL_scale_dOut non-locals.txt'  "$d_projMin"'Mythology/Magical Egypt/images/'


}



#08********08
# Procedures -  To run :



#08********08
# run - select one of options

	pImgL_sizX_sizY_scale_dOut_run		#() re-scale images of pImgL, output to dOut (all same scale)
#	pXYImgL_scale_dOut_run					#() re-scale images of pImgL to different [X,Y], output to dOut





# $ bash  "$d_bin"'image library run.sh'  

# enddoc
