[SOLVED] Command to resize png images

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

[SOLVED] Command to resize png images

#1 Post by Argolance »

Hello!
This Linux/Unix 'convert' command exists but seems not to be present on Puppy! I need it to resize png images inside a script...
Thank you for your attention.

Regards.
Last edited by Argolance on Thu 06 Oct 2011, 17:39, edited 1 time in total.

User avatar
Luluc
Posts: 200
Joined: Wed 16 Mar 2011, 07:10

#2 Post by Luluc »

That is part of the ImageMagick package. You can get it with the Puppy Package Manager, from an Ubuntu repository, I think.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#3 Post by zigbert »

Pwidgets uses resizepng
Attachments
resizepng.gz
(2 KiB) Downloaded 289 times

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#4 Post by Argolance »

@zigbert
... I was writing my post as you sent yours.... :wink:

---------------------------------------------------------------------------
Hello,
Thanks for replying.
That is part of the ImageMagick package. You can get it with the Puppy Package Manager, from an Ubuntu repository, I think
I finally found something in Puppy but the command seems to be part of Pwidget by zigbert!

'/usr/bin/resizepng'

Code: Select all

resizepng in.png out.png w h x
  • - w (width): number of pixels
    - h (height): number of pixels
    - x, don't know exactly what is this number used for but if not present, command doesn't work and console sends a segmentation error... Any number different from 0 seems working... This has to be cleared up though!
Regards.
Last edited by Argolance on Mon 03 Oct 2011, 07:05, edited 2 times in total.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post by Argolance »

Hello Zigbert!
Please, may I ask you what is the third number used for?
Thanks a lot.

Regards.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#6 Post by vovchik »

Dear Argolance,

You could try my picscale: http://www.murga-linux.com/puppy/viewtopic.php?t=72183, which can handle a variety of file types, the alpha channel (transparency) and is small. Barry has included it in later puppies too:) http://bkhome.org/blog/?viewDetailed=02375.

With kind regards,
vovchik

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#7 Post by Argolance »

Great!
Thank you.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#8 Post by zigbert »

Argolance wrote:may I ask you what is the third number used for?
Without looking into it (ages since I used it), it sounds logical that the third number sets quality/compression.


Sigmund

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#9 Post by Argolance »

Ok, thank you Zigbert!

Post Reply