Re: ERAttachment Auto Scaling Configuration Option

2010-10-30 Thread Mike Schrag
Jira with patch please Sent from my iPhone On Oct 30, 2010, at 4:19 PM, Johnny Miller wrote: > I changed the block of code to look like this: > > if (maxPixelSize != -1) { > > originalImage = > CGImageSourceCre

Re: ERAttachment Auto Scaling Configuration Option

2010-10-30 Thread Johnny Miller
I changed the block of code to look like this: if (maxPixelSize != -1) { originalImage = CGImageSourceCreateThumbnailAtIndex(source, 0, (CFDictionaryRef)thumbnailOpts); NSInteg

Re: ERAttachment Auto Scaling Configuration Option

2010-10-29 Thread Johnny Miller
If I look at ImageIOImageProcessorjnilib.m what it does is takes the greater between the resize height and the resize width and makes that the max pixel size. So, I'd like to change it that if the height is greater then it will take the original image's size and then calculate what the max wi

Re: ERAttachment Auto Scaling Configuration Option

2010-10-29 Thread Mike Schrag
i seem to recall it tries to fit he image into a 90x90 square? it's a bit of a blur On Oct 29, 2010, at 5:09 PM, Johnny Miller wrote: > Hi, > > I'm using ERAttachment + JNI and I want an image upload to be auto scaled so > that it's max height is X. The width is not a concern. > > So I se

Re: ERAttachment Auto Scaling Configuration Option

2010-10-29 Thread Mike Schrag
.jnilib.dylib file instead. > > TIA, > > Johnny > > Begin forwarded message: > >> From: Johnny Miller >> Date: October 29, 2010 11:09:26 AM HST >> To: WebObjects-Dev Mailing List List >> Subject: ERAttachment Auto Scaling Configuration Option &g

Fwd: ERAttachment Auto Scaling Configuration Option

2010-10-29 Thread Johnny Miller
Johnny Miller > Date: October 29, 2010 11:09:26 AM HST > To: WebObjects-Dev Mailing List List > Subject: ERAttachment Auto Scaling Configuration Option > > Hi, > > I'm using ERAttachment + JNI and I want an image upload to be auto scaled so > that it's max height

ERAttachment Auto Scaling Configuration Option

2010-10-29 Thread Johnny Miller
Hi, I'm using ERAttachment + JNI and I want an image upload to be auto scaled so that it's max height is X. The width is not a concern. So I set the following in my properties file (per http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/attachment/package-summary.html) er.atta