[appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-22 Thread John
It is on production server that I tried - no luck.
Did you try successfully on production to tweak the jpeg quality and
get different sizes ?

John

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-22 Thread John
It is on production server that I tried - no luck.
Did you try successfully on production to tweak the jpeg quality and
get different sizes ?

John

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-22 Thread John
Sorry Kellin, did not mean to reply to your post. The code I am talking
about is not related to blobstore.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-22 Thread Tatyana
No problem. Would you like to post your code so we can help? The code I sent 
wasn't for blobs tore also, it works however. 

Sent from my iPad

On Nov 22, 2010, at 6:27 PM, John weespr.wee...@gmail.com wrote:

 Sorry Kellin, did not mean to reply to your post. The code I am talking about 
 is not related to blobstore.
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine for Java group.
 To post to this group, send email to google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-16 Thread Peter Liu
Are you using dev server?

The image service on dev server does the most basic thing possible and
ignore most params. You might have issue working with PNG files as
well.

Deploy to a live test server and the image service should work.

By default, jpeg encoding is quality 85 (according to my trials), set
it to higher if you need better quality but size will go up.

On Nov 13, 8:57 am, John ad...@weespr.com wrote:
 When I use a lower quality encoding, the size of the resulting photo
 is the same not matter what.
 JPEG 100 or JPEG 60 gives me the exact same image size when applying a
 couple transformations.
 I tried with different types of photos, same result.

 Anyone had success with tweaking the encoding quality ?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-16 Thread Tatyana
The link to Google App Engine images API overview


http://code.google.com/appengine/docs/java/images/overview.html


This code works for transformation


ImagesService imageService = ImagesServiceFactory.getImagesService();

Image origImage = ImagesServiceFactory.makeImage(byteArray);

Blob origBlob = new Blob(origImage.getImageData());

ImageObj origImageObject = new ImageObj(orig_img.jpg,origBlob ...);

Transform tr = ImagesServiceFactory.makeResize(the_size_of_your_img,
new_size_of_your_img);

Image newImage = imageService.applyTransform(tr,origImage);



On Tue, Nov 16, 2010 at 12:40 PM, Peter Liu tinyee...@gmail.com wrote:

 Are you using dev server?

 The image service on dev server does the most basic thing possible and
 ignore most params. You might have issue working with PNG files as
 well.

 Deploy to a live test server and the image service should work.

 By default, jpeg encoding is quality 85 (according to my trials), set
 it to higher if you need better quality but size will go up.

 On Nov 13, 8:57 am, John ad...@weespr.com wrote:
  When I use a lower quality encoding, the size of the resulting photo
  is the same not matter what.
  JPEG 100 or JPEG 60 gives me the exact same image size when applying a
  couple transformations.
  I tried with different types of photos, same result.
 
  Anyone had success with tweaking the encoding quality ?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.