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 Sat 22 Nov 2014, 17:44
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
.pet for shrinking photos
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
smokey01


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

PostPosted: Sat 19 Dec 2009, 20:10    Post subject:  .pet for shrinking photos
Subject description: Useful when sending by email
 

A little while back I developed a simple image reducer so I thought I would share.

Shrink 1.0

Shrink is a very simple application that will allow you to reduce the size of a photo to either 640x480, 800x600 or 1024x768.

The default way to achieve this is to use ROX to view your photos, right mouse click on the photo that you wish to shrink then choose the size from the drop-down menu. There will be three options that display ShrinkTo640, ShrinkTo800 and ShrinkTo1024.

It is also possible to hold down the Ctrl key while you select your photos. This will
allow you to shrink many photos at once.

If you prefer to drag and drop, simply drag and drop the icons from the /usr/local/shrinkimage folder to the desktop. This will allow you to drop a photo on the icon to shrink the photo. Once again multiple photos can be done at the same time.

Your converted photos will be stored in /root/ShrunkenPhotos

This is not a new concept as others have done similar things before. I only discovered that after I had put this together.

Why did I bother?

For years I have been using Picasa which is a great piece of software. Unfortunately it is quite large and runs slowly on my computer. It also uses a lot of disk space and the more photos that are added the more space is used and the slower it becomes. The other problem is the large pup_save file you need unless you run a full installation or link it outside of the pup_save file. Of course Picasa does a lot more than view and reduce photos but that's what I mainly used it for. If you the take time to organise your photos in a logical directory structure it will be easy to find them.

Puppy has included many image viewers over the years and most of them have been excellent.

The main reason I want to shrink photos is to reduce the size when attaching to email.

Shrink uses little space and is fast. The main application included is aaphoto which does all the smart work, I take absolutely no credit for that. It does take a few seconds to reduce the photo so be patient and I think you will find this useful, if you don't, simply uninstall it.

Enjoy.
shrink-1.0.pet
Description 
pet

 Download 
Filename  shrink-1.0.pet 
Filesize  307.6 KB 
Downloaded  989 Time(s) 

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11154
Location: Arizona USA

PostPosted: Sat 19 Dec 2009, 22:33    Post subject:  

mtPaint in Puppy already can do that and much more. Smile
Back to top
View user's profile Send private message 
smokey01


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

PostPosted: Sun 20 Dec 2009, 03:34    Post subject:  

Hi Flash,

I would be interested to know how. I like Mtpaint which I use all the time but it doesn't have a command line option that allows multiple files to be shrunk at once. mtPaint is an editor rather than a viewer and I only know how to view and shrink one file at a time. I like to be able to view the thumbnails in ROX and mark multiple files then reduce their size many at a time.

I even communicated with Dmitry Groshev, the maintainer of mtPaint, and he said it couldn't be done from the command line either. He was trying to compile part of the code for me but I'm not sure if he was successful.

In the meantime I found this method to be simple and effective.

I would be very happy to use mtPaint instead if you can explain how I can achieve a similar result with the same simplicity.

Thanks

Smokey

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

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Sun 20 Dec 2009, 08:57    Post subject:  

You can also reduce jpeg sizes using the webpack script. It uses jpegtran to do this.
Back to top
View user's profile Send private message 
mawebb88

Joined: 13 Jul 2008
Posts: 245
Location: France nr Lyon

PostPosted: Mon 21 Dec 2009, 17:33    Post subject: IrfanView  

I just had to get my XP fav IrfanView running under Puppy to shrink and do lots of other things. Runs just fine with WINE.

Rgds Mike
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11154
Location: Arizona USA

PostPosted: Mon 21 Dec 2009, 22:54    Post subject:  

smokey01 wrote:
Hi Flash,

I would be interested to know how. I like Mtpaint which I use all the time but it doesn't have a command line option that allows multiple files to be shrunk at once. mtPaint is an editor rather than a viewer and I only know how to view and shrink one file at a time. I like to be able to view the thumbnails in ROX and mark multiple files then reduce their size many at a time.

I even communicated with Dmitry Groshev, the maintainer of mtPaint, and he said it couldn't be done from the command line either. He was trying to compile part of the code for me but I'm not sure if he was successful.

In the meantime I found this method to be simple and effective.

I would be very happy to use mtPaint instead if you can explain how I can achieve a similar result with the same simplicity.

Thanks

Smokey

Sorry, Smokey. I didn't read your post closely enough to notice that your program could reduce pictures in bulk. Embarassed
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Tue 22 Dec 2009, 03:58    Post subject:  

smokey,

if you want to reduce the size of your package, have a look at scale2pics
http://murga-linux.com/puppy/viewtopic.php?t=29184

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
smokey01


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

PostPosted: Tue 22 Dec 2009, 04:41    Post subject:  

aragon, thanks for that. It looks like it might do the same job. It appears to have similar functions to aaphoto.

I think aaphoto is a bit too big and slower than I would like otherwise it does an excellent job.

This might make a better alternative.

Thanks

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

Joined: 14 Apr 2011
Posts: 3

PostPosted: Mon 23 May 2011, 16:36    Post subject:  amazing..  

i dont know if its ok or not to post in an old forum..
but...
this shrink is an amazing piece of software..
just wanted to convey its author a big thanks..

for the sake of discussion,...i had a little prob..
im a newbie on lupu525...
and i was not able to get drop down menu on right click for shrinking as u had suggested in rox ..
not tht its a must..even without it,your pet is wonderful...as is puppy!!
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1040
Location: Smithers, BC, Canada

PostPosted: Mon 23 May 2011, 21:45    Post subject: Re: amazing..  

tomypuppy wrote:
this shrink is an amazing piece of software..

i was not able to get drop down menu on right click

I agree, this is a really handy .pet.

If you right click on your .jpeg file you should get a drop down menu which has "Open With." (I'm looking at it in lupu525 right now) Click on "Open With" and another menu will open up with the "ShrinkTo" options.

However, I am attaching my slight revision of this .pet which places the "ShrinkTo" options on the first right click menu, but only for .jpegs.

Enjoy, J
shrink-1.1.pet
Description  shrink with modified right click
pet

 Download 
Filename  shrink-1.1.pet 
Filesize  307.57 KB 
Downloaded  522 Time(s) 
Back to top
View user's profile Send private message 
tomypuppy

Joined: 14 Apr 2011
Posts: 3

PostPosted: Tue 24 May 2011, 17:34    Post subject: wow!!!!  

jrb bro..
i never expected to have such a quick reply..
and that too with a patch!!
u guys really care for us newbies..thanx bro
Back to top
View user's profile Send private message 
grump


Joined: 10 Oct 2011
Posts: 104
Location: Melbourne, Oz

PostPosted: Tue 11 Oct 2011, 21:02    Post subject:  

Very handy pet thanks! Saves me the pain of installing Wine and Irfanview.
Back to top
View user's profile Send private message 
grump


Joined: 10 Oct 2011
Posts: 104
Location: Melbourne, Oz

PostPosted: Mon 21 Nov 2011, 20:49    Post subject:  

Just fiddling trying to re-size a pic to use as an avatar, and thought it would be handy to have a 'ShrinkTo150' option as well. Is this something I can do with a bit of coding?

btw it does not seem to work in Slacko - I had to fire up Lupo (both the current versions) and install it there.
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Tue 22 Nov 2011, 04:56    Post subject: picscale pet  

Dear grump,

You could try my "picscale", which is part of wary, I think. A link to a pet I compiled in Lucid is here:
http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=42741. The pet is all of 14k.

With kind regards,
vovchik

Last edited by vovchik on Tue 22 Nov 2011, 04:58; edited 1 time in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Tue 22 Nov 2011, 04:57    Post subject:  

Sorry, double post....Sad
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 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.0910s ][ Queries: 13 (0.0143s) ][ GZIP on ]