Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 19 Nov 2017, 05:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
PeasyScale Graphic Image Resizer
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [49 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Wed 14 Jan 2015, 15:18    Post subject:  

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.
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 21 Jan 2015, 01:09    Post subject: PeasyScale for PNG....
Subject description: Would be possible ?
 

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... Sad =)
AA photo resizer (on test)

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.

Last edited by Pelo on Wed 21 Jan 2015, 02:47; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger 
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 01:44    Post subject:  

I have yet to get any feedback on the new WidthxHeight feature. Support for PNG is not in my plans.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4715
Location: Republic of Novo Zelande

PostPosted: Wed 21 Jan 2015, 03:08    Post subject:  

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.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 10:35    Post subject:  

greengeek wrote:
Worked for me on a Slacko 5.6 derivative.

Excellent. Thank you.

Quote:
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.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4715
Location: Republic of Novo Zelande

PostPosted: Wed 21 Jan 2015, 14:21    Post subject:  

rcrsn51 wrote:
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.

Good point. I can imagine this utility would be very helpful for times when converting a whole directory of holiday snaps ready for printing, emailing, uploading to cloud storage or for displaying on one of those digital photo frame thingies...
Back to top
View user's profile Send private message 
saintless


Joined: 11 Jun 2011
Posts: 3882
Location: Bulgaria

PostPosted: Wed 21 Jan 2015, 16:36    Post subject:  

Works also in Debian.
In case someone needs deb package: peasyscale_1.8_i386.deb.
Depends on libjpeg-progs (installed with synaptic or apt-get) and gtkdialog_0.8.3-1_i386.deb.
Maybe I'm wrong but I think there is small error in pinstall.sh script. It creates /root/root/.config/... instead /root/.config/...
Thank you!

Edit: Deb package updated to version 1.8

_________________
Farewell, Nooby, you will be missed...

Last edited by saintless on Thu 29 Jan 2015, 09:57; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Wed 21 Jan 2015, 17:11    Post subject:  

Does it keep the exif data when resizing or dump it like mtpaint.
_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 22:45    Post subject:  

smokey01 wrote:
Does it keep the exif data when resizing or dump it like mtpaint.

I don't know. This sounds like a project for someone. Wink
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Wed 21 Jan 2015, 22:55    Post subject:  

saintless wrote:
Works also in Debian.

Excellent.

Quote:
Maybe I'm wrong but I think there is small error in pinstall.sh script. It creates /root/root/.config/... instead /root/.config/...

It's OK. When a PET installs, it happens from /, not from /root.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2657
Location: South Australia

PostPosted: Wed 21 Jan 2015, 23:56    Post subject:  

It does strip out the exif data. Crying or Very sad

Using jpegtran like:
Code:
jpegtran -copy all filename.ext > filename2.jpg

copies the file and leaves the exif data intact.

Maybe you can include the "-copy all" switch when scaling.

The attached file is the exif binary. Just drop it in /usr/bin and make it executable. To see the exif data in a photo:
Code:
exif photo.jpg


I have exif converted to a rox app here somewhere. I can post it if you like.

Cheers
exif.tar
Description  Extract it in /usr/bin
tar

 Download 
Filename  exif.tar 
Filesize  40 KB 
Downloaded  130 Time(s) 

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 11720
Location: Stratford, Ontario

PostPosted: Thu 22 Jan 2015, 00:01    Post subject:  

smokey01 wrote:
Maybe you can include the "-copy all" switch when scaling.

Scaling is not done using jpegtran. It uses some gtk functions.
Back to top
View user's profile Send private message 
wjaguar

Joined: 21 Jun 2006
Posts: 335

PostPosted: Thu 22 Jan 2015, 07:43    Post subject:  

greengeek wrote:
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.

for ZAD in *.jpg ; do mtpaint --cmd -f/open="$ZAD" -i/scale w=30% -f/as=new."$ZAD" ; done

Support for PNG, and 20 more image formats, included. Wink
Back to top
View user's profile Send private message 
Pelo

Joined: 10 Sep 2011
Posts: 12591
Location: Mer méditerrannée (1 kms°)

PostPosted: Sun 25 Jan 2015, 14:19    Post subject: 854x480 set as size  

Nothing to say, perfect (for my needs).
Is there a way to stipulate a target size, e.g. 800x600 and to have everything scaled up or down in size to that? . Done.

I was asking for PNG to reduce all icons of a theme.
i just changed Jpeg and jpg by png in the script.
I gnewpet peasycale to peasyPNG for my own needs (rarely needed).

I would underline that many apps of the menu are 'Made in Europe'... merci les européens !

_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
edoc


Joined: 07 Aug 2005
Posts: 4722
Location: Southeast Georgia, USA

PostPosted: Sun 25 Jan 2015, 14:41    Post subject:
Subject description: PeasyScale v1.7
 

I apologize for dropping out of sight on this for a while ... lots of teen drama here plus birthday parties, Christmas returns & bills, etc ... sigh.

Anyhow, sorry to say it does not work in LightHouse64.

It creates the Peasyscale subfolder but throws no errors and converts no images.

Images are all .jpg

I tried both 50% and 800x600

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
TahrPup64 & Lighthouse64-b602 & JL64-603
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 4 [49 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0556s ][ Queries: 12 (0.0059s) ][ GZIP on ]