Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34409
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Cecil Westerhof <Cecil@decebal.nl> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Bash script with Image Magick to a Java program |
| Date | Fri, 27 May 2016 23:18:08 +0200 |
| Organization | Decebal Computing |
| Lines | 76 |
| Message-ID | <87eg8n2oa7.fsf@Equus.decebal.nl> (permalink) |
| References | <87oa7s4f1u.fsf@Equus.decebal.nl> <ni8a27$t0j$1@gioia.aioe.org> <8760tz50qf.fsf@Equus.decebal.nl> <ni95r3$19j$1@dont-email.me> <871t4n4u12.fsf@Equus.decebal.nl> <nia17p$8ju$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | mx02.eternal-september.org; posting-host="12baf5125b19322b899c79c2e3878015"; logging-data="22259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wsHBs+5XsvM4gfohDjiwWPhNOvJwePQs=" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:qLmv1b4qnLNQSVHDhNFaEE/MbmQ= sha1:DNpDb8Ljf0fOsYZmfNhx9Y3WEIs= |
| X-Homepage | http://www.decebal.nl/ |
| Xref | csiph.com comp.lang.java.programmer:34409 |
Show key headers only | View raw
On Friday 27 May 2016 19:51 CEST, Duncan Idaho wrote: > On 27/05/16 12:31, Cecil Westerhof wrote: >> On Friday 27 May 2016 12:00 CEST, Martin Gregorie wrote: >> >>> On Fri, 27 May 2016 11:06:16 +0200, Cecil Westerhof wrote: >>> >>>> I evaluate things. Maybe I start with the standard library and as >>>> my program evolves I switch. At the moment I know nothing about >>>> graphical functionality in Java. >>>> >>> Whether the standard image classes in java.awt.image will do the >>> job for you depends on the image source. I use it to produce >>> thumbnails of JPG images but find that it can't correctly handle >>> some JPGs from some sources. These are always B&W images, which >>> result in a thumbnail of the correct requested size but distorted >>> by being broken into vertical stripes separated by white 'bars' >>> and, typically with the right-hand 1/3 or so of the original image >>> not appearing in the thumbnail version. >> >> Well, I only work with color JPG files. ;-) >> >> >>> This seems to be a deficiency in the Java library since the GIMP >>> image manipulation program doesn't show this problem. I haven't >>> tried Image Magik on these images so don't know what it would do. >>> >>> Starting with the standard class library and only moving on if you >>> find things it can't do sounds like a good plot. >>> >>> My only other comment is that the documentation for the standard >>> image library does rather assume that you are already up to speed >>> on image manipulation and so you know what affine transforms, etc. >>> are and why you should use each type of operation on an image and >>> in what order. This isn't covered in the Java tutorials and there >>> are no references to this sort of basic information. > > Just FYI > > I use the following Java libraries > > java.awt.Graphics; > java.awt.Image; > java.awt.image.BufferedImage; > javax.imageio.ImageIO; > javax.swing.ImageIcon; > > plus some standard libraries. > > along with the > > org.apache.commons.fileupload > > libraries > > To upload, scale and generate thumbnails and large images in jpg > format for use in my home brewed Content Management System My source > images are cropped square to a random convenient size. > > I have scaled tens of thousands of images and generated tens of > thousands of thumbnails over the last five or so years with not a > single problem > > The code hasn't been touched for many years, I can't even remember > writing most of it :-) it's used almost every day. > > I'll let you have the code if you like. It could do with refactoring > I expect, like I say it hasn't been touched for years. That would be nice. If you like I will refactor it and send it back. And if you like something implemented … -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 00:42 +0200
Re: Bash script with Image Magick to a Java program Jerry Stuckle <jstucklex@attglobal.net> - 2016-05-26 20:45 -0400
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 11:01 +0200
Re: Bash script with Image Magick to a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-05-26 22:06 -0400
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 11:06 +0200
Re: Bash script with Image Magick to a Java program Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-27 10:00 +0000
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 13:31 +0200
Re: Bash script with Image Magick to a Java program Eric Douglas <e.d.programmer@gmail.com> - 2016-05-27 05:15 -0700
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 15:18 +0200
Re: Bash script with Image Magick to a Java program Duncan Idaho <duncan@dunenoemail.com> - 2016-05-27 18:51 +0100
Re: Bash script with Image Magick to a Java program Martin Gregorie <martin@address-in-sig.invalid> - 2016-05-27 18:02 +0000
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 23:23 +0200
Re: Bash script with Image Magick to a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-05-27 23:18 +0200
Re: Bash script with Image Magick to a Java program Duncan Idaho <duncan@dunenoemail.com> - 2016-05-28 08:03 +0100
Re: Bash script with Image Magick to a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-05-27 17:59 -0400
Re: Bash script with Image Magick to a Java program Brixomatic <brixomatic@yahoo.com> - 2016-05-29 17:28 +0200
Re: Bash script with Image Magick to a Java program Eric Douglas <e.d.programmer@gmail.com> - 2016-06-14 10:25 -0700
csiph-web