Tiny Core Extensions > TCE News
PicFormat extension submitted
rullolex:
--- Quote from: Rich on March 28, 2021, 11:10:59 AM ---Hi rullolex
--- Quote from: rullolex on March 28, 2021, 11:07:13 AM --- ... I confirm that PicFormat works with TC12 x86. ...
--- End quote ---
Thank you for testing.
--- End quote ---
you are welcome, I scale a jpg 4500x3000 to a 640x430 jpg, I will try other formats and I will report
Rich:
Anyone wishing to use PicFormat in an x86 command line only environment, make sure your imlib2.tcz.dep file
is up to date. See:
http://forum.tinycorelinux.net/index.php/topic,24901.0.html
Rich:
Hi rullolex
--- Quote from: rullolex on March 28, 2021, 11:21:26 AM --- ... I scale a jpg 4500x3000 to a 640x430 jpg, ...
--- End quote ---
You are aware you changed the aspect ratio from 1.5:1 to 1.48837:1
--- Code: ---tc@box:~$ calc 4500/3000
1.5
tc@box:~$ calc 640/430
1.48837
tc@box:~$
--- End code ---
If you only provide -w or -h the program will calculate the other value based on the aspect ratio of the input file.
For example:
--- Code: ---tc@E310:~/C_Programs/PicFormat$ ./PicFormat -i ShackleWrench12.png -w 1600 -o ShackleWrench12.jpg
Input=ShackleWrench12.png Fmt=png W=800 H=600 AR=4:3
Output=ShackleWrench12.jpg Fmt=jpg W=1600 H=1200 AR=4:3 Rotate=0
tc@E310:~/C_Programs/PicFormat$
--- End code ---
or:
--- Code: ---tc@E310:~/C_Programs/PicFormat$ ./PicFormat -i ShackleWrench12.png -h 1200 -o ShackleWrench12.jpg
Input=ShackleWrench12.png Fmt=png W=800 H=600 AR=4:3
Output=ShackleWrench12.jpg Fmt=jpg W=1600 H=1200 AR=4:3 Rotate=0
tc@E310:~/C_Programs/PicFormat$
--- End code ---
rullolex:
Hi Rich,
I have write 640*430 to semplify, I made this:
--- Code: ---tc@box:~$ PicFormat -i /home/tc/Download/BACCANERA.jpg -o /home/tc/baccanera.jpg -w640
--- End code ---
as your instruction. I'm sorry for the misunderstunding.
Rich:
Hi rullolex
You are allowed to give both -w and -h if you want to. Just be aware, it will give you what you ask for.
If your input is 800*600 and you ask for 1600*600 your image will be stretched horizontally but keep its original height.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version