PeasyScale Graphic Image Resizer

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

PeasyScale Graphic Image Resizer

#1 Post 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.

-----------------------
Attachments
peasyscale-2.0.pet
Updated 2017-06-29
Added a Help button
(10.04 KiB) Downloaded 766 times
screenie.png
(29.5 KiB) Downloaded 1366 times
Last edited by rcrsn51 on Thu 29 Jun 2017, 20:15, edited 47 times in total.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »


User avatar
Tote
Posts: 237
Joined: Thu 19 Jan 2012, 07:53
Location: South Wales

#3 Post by Tote »

Thanks for this! Just what I was looking for, and it works like a charm!!

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#4 Post 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

Pelo

peasyscale

#5 Post 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.
Last edited by Pelo on Sat 24 Jan 2015, 01:18, edited 5 times in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

PeasyScale v1.6 is posted above.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#7 Post 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
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#8 Post by rcrsn51 »

deleted
Last edited by rcrsn51 on Wed 03 May 2017, 00:06, edited 1 time in total.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#9 Post 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
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#10 Post 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?

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#11 Post 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
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#12 Post 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?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#13 Post by rcrsn51 »

deleted
Last edited by rcrsn51 on Wed 03 May 2017, 00:06, edited 1 time in total.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#14 Post 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
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#15 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#16 Post 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.

Pelo

PeasyScale for PNG....

#17 Post 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)
Last edited by Pelo on Wed 21 Jan 2015, 06:47, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#18 Post by rcrsn51 »

I have yet to get any feedback on the new WidthxHeight feature. Support for PNG is not in my plans.

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#19 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#20 Post 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.

Post Reply