WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PicFormat extension submitted  (Read 8158 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: PicFormat extension submitted
« Reply #15 on: July 16, 2021, 12:26:27 PM »
Hi pioj
Thanks for the suggestion. I will look into it.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: PicFormat extension submitted
« Reply #16 on: July 17, 2021, 12:19:23 AM »
Hi pioj
I added a  -p N  option. So  -p 75  reduces the image to 3/4 of its original size,  -p 100  keeps the same size,  -p 110
makes it 10% larger,  -p 200  makes it twice as big,  etc.

The new executable is 4748 bytes in size. Running it with no parameters produces this help screen:
Code: [Select]
PicFormat version 0.20 Jul 16 2021 23:23:30
Copyright Richard A. Rost Mar 17,2021

PicFormat resizes, rotates, and changes formats (i.e. .jpg to .png)

Usage: PicFormat [-i FILE] [-o FILE] [-w N] [-h N] [-p N] [-r N]

        -i FILE Input.
        -o FILE Output.
        -w N    Output width.
        -h N    Output height.
        -p N    Percent, 110=10% bigger, 50=1/2 size.
        -r N    Rotate image CW 90, 180, or 270 degrees.

Notes
        N is an unsigned integer.
        Only -w OR -h OR -p is needed if resizing.
        If rotating 90 or 270, -w and -h are swapped.

The .info file:
http://tinycorelinux.net/12.x/x86/tcz/PicFormat.tcz.info

To find out which image formats are supported, please read the original post:
http://forum.tinycorelinux.net/index.php/topic,24900.0.html

The x86 and x86_64 versions were built under TC10. The x86 executable was also tested under TC4. The x86_64
executable was also tested under TC11. In addition, since  imlib2  is unchanged in TC10 through TC12, I feel confident
PicFormat will run under all those versions and has been added to those repositories.
« Last Edit: July 17, 2021, 01:26:59 PM by Rich »