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...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.
PeasyScale Graphic Image Resizer
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
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
Last edited by saintless on Thu 29 Jan 2015, 13:57, edited 1 time in total.
It does strip out the exif data.
Using jpegtran like:
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:
I have exif converted to a rox app here somewhere. I can post it if you like.
Cheers
Using jpegtran like:
Code: Select all
jpegtran -copy all filename.ext > filename2.jpg
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: Select all
exif photo.jpg
Cheers
- Attachments
-
- exif.tar
- Extract it in /usr/bin
- (40 KiB) Downloaded 424 times
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 !
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 !
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
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
[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
[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
Sorry, again, got distracted ...
It appears to have worked, on steroids!
It chopped the 3.4g 2832x2128 image down to 53k 800x600!
I've been trying to test it on the Polaroid picture frame gadget but cannot get the computer to recognize it for some reason.
I need to buy a SC card and transfer the files there manually.
Thanks again and sorry for the delays!
It appears to have worked, on steroids!
It chopped the 3.4g 2832x2128 image down to 53k 800x600!
I've been trying to test it on the Polaroid picture frame gadget but cannot get the computer to recognize it for some reason.
I need to buy a SC card and transfer the files there manually.
Thanks again and sorry for the delays!
[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
[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
WidthxHeight works perfectly in Precise 5.7.1 retro!rcrsn51 wrote:I have yet to get any feedback on the new WidthxHeight feature.
Possible bug in the rotate function, though (?) - selecting Rotate 90 seems to have lopped off a bit of the original image's bottom, and added a corresponding blank area to it's top (see attached image result, for clarity - original "Fontwizard" screenshot window on left, post-rotated on right) -
- Attachments
-
- PeasyScale_1.7_rotate_test.jpg
- Rotate 90 function results
- (59.13 KiB) Downloaded 578 times
More artifacts, it seems... image attached, with individual pictures re-rotated back upright within Viewnior for easier comparison. "Rotate -90" trims a bit off the right and adds it back to the left - "Rotate 90" does so from bottom to top.
Bob
Bob
- Attachments
-
- PeasyScale_1.7_rotate_test2.jpg
- PeasyScale rotate test2
- (52.53 KiB) Downloaded 617 times
Thanks for testing the WidthxHeight feature.
I have also seen those artifacts left by transformations, but only with some jpegs. They are coming from the jpegtran tool, not from PeasyScale itself.
I looked at the jpegtran options and there is a "-trim" argument that solves the problem. I guess that it trims off any non-standard parts of the image.
You can test this yourself with
I have posted a new version above with this fix.
I have also seen those artifacts left by transformations, but only with some jpegs. They are coming from the jpegtran tool, not from PeasyScale itself.
I looked at the jpegtran options and there is a "-trim" argument that solves the problem. I guess that it trims off any non-standard parts of the image.
You can test this yourself with
Code: Select all
jpegtran -rotate 90 -trim old.jpg > new.jpg
Last edited by rcrsn51 on Thu 29 Jan 2015, 12:05, edited 2 times in total.
rcrsn51, Have you looked at aaphoto?
If so how does it compare to jpegtran?
I know aaphoto retains the exif data and it seems to have similar functionality.
If so how does it compare to jpegtran?
I know aaphoto retains the exif data and it seems to have similar functionality.
- Attachments
-
- aaphoto.tar.gz
- aaphoto (32bit)
- (33.66 KiB) Downloaded 513 times
Played with this, and yes - definitely seems the better choice to (only possibly!) lose a few rows of pixels, than to have them transposed onto some other edge of the image, instead. Apparently, an unavoidable byproduct of 100% lossless transformations on images sized with some uneven multiple of block sizes... or something like that...rcrsn51 wrote: You can test this yourself with
Code: Select all
jpegtran -rotate 90 -trim old.jpg > new.jpg
Thank for the fix, rcrsn51!
Bob
My thoughts exactly.Moat wrote:Apparently, an unavoidable byproduct of 100% lossless transformations on images sized with some uneven multiple of block sizes... or something like that...
If I transform an original JPEG from my camera, I don't see the artifacts.
I have posted the patched v1.8 above.