Page 1 of 4

PeasyScale Graphic Image Resizer

Posted: Fri 06 Apr 2012, 03:17
by rcrsn51
Update: PeasyScale v1.9 can now accept several graphic types for input, not just JPEGs. It can also convert the scaled image to a different type. The old procedure of batch-renaming has been replaced with batch-numbering.

Update: V1.7 can resize images by Percent and by Width x Height. If you choose a scaling value like 800x600 and the image has portrait orientation, it will be scaled to 600x800.

Update: V1.6 has tools for rotating and flipping images. Be aware that you CANNOT do a resize and transformation at the same time.

--------------------------------

PeasyScale is a simple image resizer. It is based on MU's work here. PeasyScale uses the command-line tool image-changer. The image-changer binary is contained in the PeasyScale PET.

PeasyScale can resize single files or entire folders. In either case, the new images are stored in a subfolder named PEASYSCALE. For example, if you resized your "vacation" folder, the new files would be in "vacation/PEASYSCALE".

Launch PeasyScale from the Graphic menu and open another window to the source of the images. Drag the target file or folder into the first input box.

Enter the desired scaling % value in the second box. For example, a value of 50 reduces the image to 50% of its original dimensions. The aspect ratio is maintained. You can also resize images by Width x Height. If you choose a scaling value like 800x600 and the image has portrait orientation, it will be scaled to 600x800.

Click the Scale button. You have the option to number the new files in sequence as they are scaled.

-----------------------

Posted: Fri 06 Apr 2012, 11:47
by darkcity

Posted: Fri 22 Jun 2012, 17:37
by Tote
Thanks for this! Just what I was looking for, and it works like a charm!!

Posted: Fri 22 Jun 2012, 20:09
by ravensrest
Thanks! Nice addition to your other works.

I installed and tested it in Wary53, Racy53, and Slacko53, both individual and batch files. No problems.

As long as you are producing these nice little guis, what are the chances of convincing you to include them all in one gui front end so we could scale, convert, make pdfs, etc in one program? And how about adding titling or labeling?

BS

peasyscale

Posted: Sun 05 Aug 2012, 03:38
by Pelo
très utile, very useful.
Merci monsieur.
Pelo
Jan 2014 : can be easily used for PNG extension, when free time available.
usefull to resize icon theme in an application.

Posted: Mon 28 Jul 2014, 00:01
by rcrsn51
PeasyScale v1.6 is posted above.

Posted: Wed 24 Sep 2014, 02:24
by edoc
In LightHouse 64 ...

PeasyScale loads OK and creates the peasyscale folder with a ".count" file but no scaled jpg image.

Thoughts, please?

Thanks - David

Posted: Wed 24 Sep 2014, 05:15
by rcrsn51
deleted

Posted: Wed 24 Sep 2014, 23:03
by edoc
It loaded but didn't show in the Menu.

I hunted peasyscale.desktop to /usr/share/applications/ - moved it to the desktop and executed.

I dragged a jpg photo sized 766k in (used the default scale setting of 50) and the output was 49k.

Changing the setting to 80 results in a file size of 108k.

Good news: It works in LH64

Bad news: The scale is off ...

WDYT?

Thanks - David

Posted: Wed 24 Sep 2014, 23:37
by rcrsn51
A scaling value of 50% does not mean a 50% reduction in the filesize. It means 50% of the pixels in each direction. Did you check this?

Posted: Wed 24 Sep 2014, 23:44
by edoc
Silly me ...

You are correct, as usual ...

Source: 766k 1200 x 1600

80%: 960 x 1280

50%: 600x800

And, other than not finding the menu, we now know that it works in LH64.

Now I'll try a folder rather than a single item ...

Thanks! David

Posted: Thu 08 Jan 2015, 02:28
by edoc
Is there a way to stipulate a target size, e.g. 800x600 and to have everything scaled up or down in size to that?

We have a small electronic photo frame device and a variety of pictures we'd like to load for "grandpa".

The best we can do in maximizing the image displayed the easier for him to enjoy them.

WDYT?

Do we need to manually up-scale the smaller originals to match the right-sized images we previously reduced from a different source using PeasyScale?

Posted: Thu 08 Jan 2015, 02:32
by rcrsn51
deleted

Posted: Thu 08 Jan 2015, 02:44
by edoc
OK, thanks, was afraid of that.

As I recall imagemagick is proprietary.

I guess I just need to set aside the time to upscale the smaller images before we send this off to him.

Thanks again - David

Posted: Thu 08 Jan 2015, 02:51
by rcrsn51
edoc wrote:I guess I just need to set aside the time to upscale the smaller images before we send this off to him.
PeasyScale can also upscale. Use a percentage value like 200. But with small images, there is a danger that they will become pixelated.

Posted: Wed 14 Jan 2015, 19:18
by rcrsn51
PeasyScale v1.7 can now resize images by Percent and by Width x Height. If you choose a scaling value like 800x600 and the image has portrait orientation, it will be scaled to 600x800.

This version is a major re-write. Some feedback would be appreciated.

PeasyScale for PNG....

Posted: Wed 21 Jan 2015, 05:09
by Pelo
rcrsn, could it be possible to do the same with PNG ?
Why ? for resizing a kit of icons 64x64 to 16x16. Perhaps tools yet exist, i go on searching while your answer arrive.
Gthumbs would do it. On test.(only one picture at at time... :( =)
AA photo resizer (on test)

Posted: Wed 21 Jan 2015, 05:44
by rcrsn51
I have yet to get any feedback on the new WidthxHeight feature. Support for PNG is not in my plans.

Posted: Wed 21 Jan 2015, 07:08
by greengeek
rcrsn51 wrote:I have yet to get any feedback on the new WidthxHeight feature. Support for PNG is not in my plans.
Just gave this a quick test - I'm keen on the % scale feature as this is one of the functions missing from mtPaint. Works well.

The widthxheight function is a nice idea - it's a good way to make sure a jpg is scaled correctly for the title/header portion of a website (which is not always a standard value, as some web building programmes skip a pixel here and there so that there is border room...). Good for special effects/distortion too.

Worked for me on a Slacko 5.6 derivative.
cheers!

EDIT - the fact that it interprets the widthxheight specified by the user as being relative to the portrait/landscape orientation of the original image is quite handy. Makes it mistake tolerant.

Just one possible concern - it does not offer any warning that the /root/PEASYSCALE directory already contains an image of the same name. Seems to overwrite.

Posted: Wed 21 Jan 2015, 14:35
by rcrsn51
greengeek wrote:Worked for me on a Slacko 5.6 derivative.
Excellent. Thank you.
Just one possible concern - it does not offer any warning that the /root/PEASYSCALE directory already contains an image of the same name. Seems to overwrite.
That's correct. Since you still have the originals in the parent directory, nothing is permanently lost. And if you were batch converting a folder of images, you would not want to answer a "Yes-No" dialog for each one that was being overwritten.