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 Tue 21 Oct 2014, 18:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
ljcrop - Tcl/Tk gui for lossless jpeg cropping
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
disciple

Joined: 20 May 2006
Posts: 6447
Location: Auckland, New Zealand

PostPosted: Sat 12 Apr 2008, 10:09    Post_subject:  ljcrop - Tcl/Tk gui for lossless jpeg cropping  

I found this cool tcl script at http://astro.ucla.edu/%7Emperrin/software/ljcrop/ljcrop
It requires a version of jpegtran with crop support, so I packaged the two up together. Just extract to /usr/bin or /usr/local/bin or somewhere. It should work in Puppy except Dingo, which I think doesn't have Tcl/Tk.

It would be a good project if anyone wanted to improve it. I think the major drawback is that when you draw your selection it doesn't snap to the 16x16 pixel grid that it has to crop at for lossless cropping.
There is a similar perl/Tk script I've also attached that might have some good features - e.g. the selection scales when you zoom in or out, so the same part of the picture is selected, rather than the same part of the screen.
What Linux really needs is a gui for doing constrained aspect ratio cropping, so you can specify an aspect ratio, and the selection will be locked to that shape. I wonder if it would be possible to extend it to do that?

It would be very easy to integrate it with something like jhead, to remove embedded thumbnails (or regenerate them with mogrify) after cropping, so you don't have thumbnails that don't match the photos.
jpegcrop.pl.gz
Description  For interest
gz

 Download 
Filename  jpegcrop.pl.gz 
Filesize  3.04 KB 
Downloaded  275 Time(s) 
ljcrop.tar.gz
Description 
gz

 Download 
Filename  ljcrop.tar.gz 
Filesize  43.66 KB 
Downloaded  293 Time(s) 

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6447
Location: Auckland, New Zealand

PostPosted: Tue 09 Jul 2013, 23:56    Post_subject: cropgui - lossless jpeg cropping like jpegcrops
Sub_title: pyGTK/pyTK
 

There's now a pyGTK / pyTK program like this at http://git.unpythonic.net/view/cropgui.git
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6447
Location: Auckland, New Zealand

PostPosted: Thu 18 Jul 2013, 05:33    Post_subject:  

Of course, rphoto can also do this, and it is the only alternative to jpegcrops (run in wine) for constrained aspect ratio cropping. It crashes a bit though Sad
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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