add_filter( \'jpeg_quality\', \'wpse_39179_jpeg_quality_for_post_type\' );
function wpse_39179_jpeg_quality_for_post_type( $quality ) {
if ( ( isset($_GET[\'post_type\'] ) && $_GET[\'post_type\'] == \'post_type_slug\' ) || ( isset( $post_type ) && $post_type == \'post_type_slug\' ) ){
// For this post type, we want 100% quality
return \'100\';
}else{
// Otherwise, revert back to what was passed into this filter to allow us to modify it elsewhere
return $quality;
}
}/* wpse_39179_jpeg_quality_for_post_type() */