Ronald Burkey
|
Creating a PNG output file.
|
Ronald Burkey
08/12/2011 12:22 PM
post88079
|
Creating a PNG output file.
I have a rectangular array in memory of RGB values (i.e., it is IMG_FMT_RGBA8888 data) and would like to output a PNG
file from that data. How would this be done?
|
|
|
Lavin Pottekkat
|
RE: Creating a PNG output file.
|
Lavin Pottekkat
08/17/2011 8:14 AM
post88148
|
RE: Creating a PNG output file.
Hi Ronald,
Try this it should work :) .... search for "Lavin" to see my comments inline....
uint32_t *img_buf = NULL;
uint32_t image_size = Max size of the RGB data buffer;
int32_t result = EOK;
img_lib_t ilib;
img_codec_t codec_buf;
int n_codecs;
img_t img;
io_stream_t *image_stream_fd;
char mime[64];
uintptr_t temp_encode_data = 0;
/* allocate (image_size/sizeof int-(4bytes)) elements of type int */
if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))), sizeof(uint32_t)))) {
_error("%s: Memory allocation for %d bytes failed", __FUNCTION__, image_size);
return ENOMEM;
}
/* Lavin : copy the image RGB values linearly to the above allocated img_buf, from your rectangular array in memory */
/* Lavin : at this point I assume that you have already copied the image data to img_buf.*/
/* Lavin : NOTE: you can very well use your rectangular array directly as image_buf as well :) */
//Attaching to the image library
memset(&img,0,sizeof(img_t));
/* get the resolution details */
img.w = 1440; // 1440 or 960 , use accordingly
img.h = 540; // 540, use accordingly
img.format = IMG_FMT_RGBA8888;
img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
img.access.direct.data = img_buf;
img.access.direct.stride = (img.w * 3 );
if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK) {
fprintf(stderr, "img_lib_attach() failed: %d\n", result);
return result;
}
memset(mime, '\0', 64 );
sprintf(mime, "image/%s", "png");
if(EOK == (n_codecs = img_codec_list_bymime( ilib,
mime,
&codec_buf,
10 )))
{
_error("%s: img_codec_list() No Codecs found on target !", __FUNCTION__);
return -1;
}
//convert the image_fd to stream_fd required by image libs.
/* Lavin : here file_fs should be your xxx.png file fd after open(...O_CREATE) */
if(NULL == (image_stream_fd = io_open( IO_FD, IO_WRITE, file_fd )))
{
_error("%s: io_open() failed: %d", __FUNCTION__);
return -1;
}
//set the codec
//Prepare to encode a frame to a stream
if (img_encode_begin(codec_buf, image_stream_fd, &temp_encode_data) != IMG_ERR_OK)
{
_error("%s: img_encode_begin() failed", __FUNCTION__);
return -1;
}
if ( (result = img_encode_frame(codec_buf, image_stream_fd, NULL, &img, &temp_encode_data)) != IMG_ERR_OK)
{
_error("%s: img_encode_frame() failed: %d", __FUNCTION__, result);
return -1;
}
(void)img_encode_finish(codec_buf, image_stream_fd, &temp_encode_data);
io_close( image_stream_fd );
/* done with img lib */
img_lib_detach(ilib);
/* Lavin : Now your PNG fromat file is ready :) :) */
Regards,
Lavin,
-----Original Message-----
From: Ronald Burkey [mailto:community-noreply@qnx.com]
Sent: Friday, August 12, 2011 9:52 PM
To: advanced-graphics
Subject: Creating a PNG output file.
I have a rectangular array in memory of RGB values (i.e., it is IMG_FMT_RGBA8888 data) and would like to output a PNG
file from that data. How would this be done?
_______________________________________________
Advanced Graphics
http://community.qnx.com/sf/go/post88079
|
|
|
Lavin Pottekkat
|
RE: Creating a PNG output file.
|
Lavin Pottekkat
08/17/2011 8:34 AM
post88149
|
RE: Creating a PNG output file.
Just now I noticed that you have RGBA8888, in this case I think you should modify below lines highlighted below using '-
->'
Also pl make sure you configure the img.w/h appropriately.
Cheers,
Lavin
-----Original Message-----
From: Pottekkat, Lavin
Sent: Wednesday, August 17, 2011 5:43 PM
To: advanced-graphics
Subject: RE: Creating a PNG output file.
Hi Ronald,
Try this it should work :) .... search for "Lavin" to see my comments inline....
uint32_t *img_buf = NULL;
uint32_t image_size = Max size of the RGB data buffer;
int32_t result = EOK;
img_lib_t ilib;
img_codec_t codec_buf;
int n_codecs;
img_t img;
io_stream_t *image_stream_fd;
char mime[64];
uintptr_t temp_encode_data = 0;
/* allocate (image_size/sizeof int-(4bytes)) elements of type int */
if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))), sizeof(uint32_t)))) {
_error("%s: Memory allocation for %d bytes failed", __FUNCTION__, image_size);
return ENOMEM;
}
/* Lavin : copy the image RGB values linearly to the above allocated img_buf, from your rectangular array in memory */
/* Lavin : at this point I assume that you have already copied the image data to img_buf.*/
/* Lavin : NOTE: you can very well use your rectangular array directly as image_buf as well :) */
//Attaching to the image library
memset(&img,0,sizeof(img_t));
/* get the resolution details */
img.w = 1440; // 1440 or 960 , use accordingly
img.h = 540; // 540, use accordingly
img.format = IMG_FMT_RGBA8888;
img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
img.access.direct.data = img_buf;
--> img.access.direct.stride = (img.w * 4 );
if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK) {
fprintf(stderr, "img_lib_attach() failed: %d\n", result);
return result;
}
memset(mime, '\0', 64 );
sprintf(mime, "image/%s", "png");
if(EOK == (n_codecs = img_codec_list_bymime( ilib,
mime,
&codec_buf,
10 )))
{
_error("%s: img_codec_list() No Codecs found on target !", __FUNCTION__);
return -1;
}
//convert the image_fd to stream_fd required by image libs.
/* Lavin : here file_fs should be your xxx.png file fd after open(...O_CREATE) */
if(NULL == (image_stream_fd = io_open( IO_FD, IO_WRITE, file_fd )))
{
_error("%s: io_open() failed: %d", __FUNCTION__);
return -1;
}
//set the codec
//Prepare to encode a frame to a stream
if (img_encode_begin(codec_buf, image_stream_fd, &temp_encode_data) != IMG_ERR_OK)
{
_error("%s: img_encode_begin() failed", __FUNCTION__);
return -1;
}
if ( (result = img_encode_frame(codec_buf, image_stream_fd, NULL, &img, &temp_encode_data)) != IMG_ERR_OK)
{
_error("%s: img_encode_frame() failed: %d", __FUNCTION__, result);
return -1;
}
(void)img_encode_finish(codec_buf, image_stream_fd, &temp_encode_data);
io_close( image_stream_fd );
/* done with img lib */
img_lib_detach(ilib);
/* Lavin : Now your PNG fromat file is ready :) :) */
Regards,
Lavin,
-----Original Message-----
From: Ronald Burkey [mailto:community-noreply@qnx.com]
Sent: Friday, August 12, 2011 9:52 PM
To: advanced-graphics
Subject: Creating a PNG output file.
I have a rectangular array in memory of RGB values (i.e., it is IMG_FMT_RGBA8888 data) and would like to output a PNG
file from that data. How would this be done?
_______________________________________________
Advanced Graphics
http://community.qnx.com/sf/go/post88079
|
|
|
Ronald Burkey
|
Re: Creating a PNG output file. [bcc]
|
Ronald Burkey
08/17/2011 8:40 AM
post88150
|
Re: Creating a PNG output file. [bcc]
I had just made that change about 10 seconds before your message
arrived. :-) I haven't gotten to the point yet where I can run the
code. I'll let you know what happens.
I assume that if I want jpg or bmp, it's just a matter of changing the
mime type appropriately?
Thanks!
Ron
On 08/17/2011 07:34 AM, Lavin Pottekkat wrote:
> Just now I noticed that you have RGBA8888, in this case I think you should modify below lines highlighted below using
'-->'
> Also pl make sure you configure the img.w/h appropriately.
>
> Cheers,
> Lavin
>
> -----Original Message-----
> From: Pottekkat, Lavin
> Sent: Wednesday, August 17, 2011 5:43 PM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file.
>
> Hi Ronald,
>
> Try this it should work :) .... search for "Lavin" to see my comments inline....
>
> uint32_t *img_buf = NULL;
> uint32_t image_size = Max size of the RGB data buffer;
> int32_t result = EOK;
>
> img_lib_t ilib;
> img_codec_t codec_buf;
> int n_codecs;
> img_t img;
> io_stream_t *image_stream_fd;
> char mime[64];
> uintptr_t temp_encode_data = 0;
>
> /* allocate (image_size/sizeof int-(4bytes)) elements of type int */
> if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))), sizeof(uint32_t)))) {
> _error("%s: Memory allocation for %d bytes failed", __FUNCTION__, image_size);
> return ENOMEM;
> }
>
> /* Lavin : copy the image RGB values linearly to the above allocated img_buf, from your rectangular array in memory
*/
>
> /* Lavin : at this point I assume that you have already copied the image data to img_buf.*/
>
> /* Lavin : NOTE: you can very well use your rectangular array directly as image_buf as well :) */
>
>
> //Attaching to the image library
> memset(&img,0,sizeof(img_t));
>
> /* get the resolution details */
> img.w = 1440; // 1440 or 960 , use accordingly
> img.h = 540; // 540, use accordingly
>
> img.format = IMG_FMT_RGBA8888;
>
> img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
>
> img.access.direct.data = img_buf;
> --> img.access.direct.stride = (img.w * 4 );
>
> if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK) {
> fprintf(stderr, "img_lib_attach() failed: %d\n", result);
> return result;
> }
>
> memset(mime, '\0', 64 );
> sprintf(mime, "image/%s", "png");
>
> if(EOK == (n_codecs = img_codec_list_bymime( ilib,
> mime,
> &codec_buf,
> 10 )))
> {
> _error("%s: img_codec_list() No Codecs found on target !", __FUNCTION__);
> return -1;
> }
>
> //convert the image_fd to stream_fd required by image libs.
> /* Lavin : here file_fs should be your xxx.png file fd after open(...O_CREATE) */
> if(NULL == (image_stream_fd = io_open( IO_FD, IO_WRITE, file_fd )))
> {
> _error("%s: io_open() failed: %d", __FUNCTION__);
> return -1;
> }
>
> //set the codec
>
> //Prepare to encode a frame to a stream
> if (img_encode_begin(codec_buf, image_stream_fd,&temp_encode_data) != IMG_ERR_OK)
> {
> _error("%s: img_encode_begin() failed", __FUNCTION__);
> return -1;
> }
>
> if ( (result = img_encode_frame(codec_buf, image_stream_fd, NULL,&img,&temp_encode_data)) != IMG_ERR_OK)
> {
> _error("%s: img_encode_frame() failed: %d",...
View Full Message
|
|
|
Lavin Pottekkat
|
RE: Creating a PNG output file. [bcc]
|
Lavin Pottekkat
08/17/2011 8:53 AM
post88152
|
RE: Creating a PNG output file. [bcc]
Yes, you can change the mime type for different file formats.
Regards,
Lavin
-----Original Message-----
From: Ronald Burkey [mailto:community-noreply@qnx.com]
Sent: Wednesday, August 17, 2011 6:10 PM
To: advanced-graphics
Subject: Re: Creating a PNG output file. [bcc]
I had just made that change about 10 seconds before your message
arrived. :-) I haven't gotten to the point yet where I can run the
code. I'll let you know what happens.
I assume that if I want jpg or bmp, it's just a matter of changing the
mime type appropriately?
Thanks!
Ron
On 08/17/2011 07:34 AM, Lavin Pottekkat wrote:
> Just now I noticed that you have RGBA8888, in this case I think you should modify below lines highlighted below using
'-->'
> Also pl make sure you configure the img.w/h appropriately.
>
> Cheers,
> Lavin
>
> -----Original Message-----
> From: Pottekkat, Lavin
> Sent: Wednesday, August 17, 2011 5:43 PM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file.
>
> Hi Ronald,
>
> Try this it should work :) .... search for "Lavin" to see my comments inline....
>
> uint32_t *img_buf = NULL;
> uint32_t image_size = Max size of the RGB data buffer;
> int32_t result = EOK;
>
> img_lib_t ilib;
> img_codec_t codec_buf;
> int n_codecs;
> img_t img;
> io_stream_t *image_stream_fd;
> char mime[64];
> uintptr_t temp_encode_data = 0;
>
> /* allocate (image_size/sizeof int-(4bytes)) elements of type int */
> if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))), sizeof(uint32_t)))) {
> _error("%s: Memory allocation for %d bytes failed", __FUNCTION__, image_size);
> return ENOMEM;
> }
>
> /* Lavin : copy the image RGB values linearly to the above allocated img_buf, from your rectangular array in memory
*/
>
> /* Lavin : at this point I assume that you have already copied the image data to img_buf.*/
>
> /* Lavin : NOTE: you can very well use your rectangular array directly as image_buf as well :) */
>
>
> //Attaching to the image library
> memset(&img,0,sizeof(img_t));
>
> /* get the resolution details */
> img.w = 1440; // 1440 or 960 , use accordingly
> img.h = 540; // 540, use accordingly
>
> img.format = IMG_FMT_RGBA8888;
>
> img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
>
> img.access.direct.data = img_buf;
> --> img.access.direct.stride = (img.w * 4 );
>
> if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK) {
> fprintf(stderr, "img_lib_attach() failed: %d\n", result);
> return result;
> }
>
> memset(mime, '\0', 64 );
> sprintf(mime, "image/%s", "png");
>
> if(EOK == (n_codecs = img_codec_list_bymime( ilib,
> mime,
> &codec_buf,
> 10 )))
> {
> _error("%s: img_codec_list() No Codecs found on target !", __FUNCTION__);
> return -1;
> }
>
> //convert the image_fd to stream_fd required by image libs.
> /* Lavin : here file_fs should be your xxx.png file fd after open(...O_CREATE) */
> if(NULL == (image_stream_fd = io_open( IO_FD, IO_WRITE, file_fd )))
> {
> _error("%s: io_open() failed: %d", __FUNCTION__);
> return -1;
> }
>
> //set the codec
>
> //Prepare to encode a frame to a stream
> if (img_encode_begin(codec_buf, image_stream_fd,&temp_encode_data) != IMG_ERR_OK)
> {
> _error("%s:...
View Full Message
|
|
|
Ronald Burkey
|
Re: Creating a PNG output file. [bcc]
|
Ronald Burkey
08/17/2011 10:24 AM
post88158
|
Re: Creating a PNG output file. [bcc]
Thanks, Lavin. It seems to work fine, after appropriate changes for my
environment.
On 08/17/2011 07:53 AM, Lavin Pottekkat wrote:
> Yes, you can change the mime type for different file formats.
>
> Regards,
> Lavin
>
> -----Original Message-----
> From: Ronald Burkey [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 6:10 PM
> To: advanced-graphics
> Subject: Re: Creating a PNG output file. [bcc]
>
> I had just made that change about 10 seconds before your message
> arrived. :-) I haven't gotten to the point yet where I can run the
> code. I'll let you know what happens.
>
> I assume that if I want jpg or bmp, it's just a matter of changing the
> mime type appropriately?
>
> Thanks!
> Ron
>
>
>
|
|
|
Ronald Burkey
|
RE: Creating a PNG output file.
|
Ronald Burkey
08/17/2011 12:22 PM
post88168
|
RE: Creating a PNG output file.
One final (I hope) question: If JPGs were being output rather than
PNGs, how can the quality/compression be set?
-- Ron
> -----Original Message-----
> From: Lavin Pottekkat [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 7:53 AM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file. [bcc]
>
> Yes, you can change the mime type for different file formats.
>
> Regards,
> Lavin
>
> -----Original Message-----
> From: Ronald Burkey [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 6:10 PM
> To: advanced-graphics
> Subject: Re: Creating a PNG output file. [bcc]
>
> I had just made that change about 10 seconds before your message
> arrived. :-) I haven't gotten to the point yet where I can run the
> code. I'll let you know what happens.
>
> I assume that if I want jpg or bmp, it's just a matter of changing the
> mime type appropriately?
>
> Thanks!
> Ron
>
>
> On 08/17/2011 07:34 AM, Lavin Pottekkat wrote:
> > Just now I noticed that you have RGBA8888, in this case I think you
> should modify below lines highlighted below using '-->'
> > Also pl make sure you configure the img.w/h appropriately.
> >
> > Cheers,
> > Lavin
> >
> > -----Original Message-----
> > From: Pottekkat, Lavin
> > Sent: Wednesday, August 17, 2011 5:43 PM
> > To: advanced-graphics
> > Subject: RE: Creating a PNG output file.
> >
> > Hi Ronald,
> >
> > Try this it should work :) .... search for "Lavin" to see my
comments
> inline....
> >
> > uint32_t *img_buf = NULL;
> > uint32_t image_size = Max size of the RGB data buffer;
> > int32_t result = EOK;
> >
> > img_lib_t ilib;
> > img_codec_t codec_buf;
> > int n_codecs;
> > img_t img;
> > io_stream_t *image_stream_fd;
> > char mime[64];
> > uintptr_t temp_encode_data = 0;
> >
> > /* allocate (image_size/sizeof int-(4bytes)) elements of type
int */
> > if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))),
> sizeof(uint32_t)))) {
> > _error("%s: Memory allocation for %d bytes failed",
__FUNCTION__,
> image_size);
> > return ENOMEM;
> > }
> >
> > /* Lavin : copy the image RGB values linearly to the above
allocated
> img_buf, from your rectangular array in memory */
> >
> > /* Lavin : at this point I assume that you have already copied the
> image data to img_buf.*/
> >
> > /* Lavin : NOTE: you can very well use your rectangular array
directly
> as image_buf as well :) */
> >
> >
> > //Attaching to the image library
> > memset(&img,0,sizeof(img_t));
> >
> > /* get the resolution details */
> > img.w = 1440; // 1440 or 960 , use accordingly
> > img.h = 540; // 540, use accordingly
> >
> > img.format = IMG_FMT_RGBA8888;
> >
> > img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
> >
> > img.access.direct.data = img_buf;
> > --> img.access.direct.stride = (img.w * 4 );
> >
> > if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK) {
> > fprintf(stderr, "img_lib_attach() failed: %d\n", result);
> > return result;
> > }
> >
> > memset(mime, '\0', 64 );
> > sprintf(mime, "image/%s", "png");
> >
> > if(EOK == (n_codecs = img_codec_list_bymime( ilib,
> > ...
View Full Message
|
|
|
Lavin Pottekkat
|
RE: Creating a PNG output file.
|
Lavin Pottekkat
08/17/2011 1:02 PM
post88169
|
RE: Creating a PNG output file.
Though i have not tried changing the compression techniques, i have seen noticeable difference in the size of the images
created with different formats.
Regards,
Lavin
________________________________________
From: Ronald Burkey [community-noreply@qnx.com]
Sent: Wednesday, August 17, 2011 9:52 PM
To: advanced-graphics
Subject: RE: Creating a PNG output file.
One final (I hope) question: If JPGs were being output rather than
PNGs, how can the quality/compression be set?
-- Ron
> -----Original Message-----
> From: Lavin Pottekkat [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 7:53 AM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file. [bcc]
>
> Yes, you can change the mime type for different file formats.
>
> Regards,
> Lavin
>
> -----Original Message-----
> From: Ronald Burkey [mailto:community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 6:10 PM
> To: advanced-graphics
> Subject: Re: Creating a PNG output file. [bcc]
>
> I had just made that change about 10 seconds before your message
> arrived. :-) I haven't gotten to the point yet where I can run the
> code. I'll let you know what happens.
>
> I assume that if I want jpg or bmp, it's just a matter of changing the
> mime type appropriately?
>
> Thanks!
> Ron
>
>
> On 08/17/2011 07:34 AM, Lavin Pottekkat wrote:
> > Just now I noticed that you have RGBA8888, in this case I think you
> should modify below lines highlighted below using '-->'
> > Also pl make sure you configure the img.w/h appropriately.
> >
> > Cheers,
> > Lavin
> >
> > -----Original Message-----
> > From: Pottekkat, Lavin
> > Sent: Wednesday, August 17, 2011 5:43 PM
> > To: advanced-graphics
> > Subject: RE: Creating a PNG output file.
> >
> > Hi Ronald,
> >
> > Try this it should work :) .... search for "Lavin" to see my
comments
> inline....
> >
> > uint32_t *img_buf = NULL;
> > uint32_t image_size = Max size of the RGB data buffer;
> > int32_t result = EOK;
> >
> > img_lib_t ilib;
> > img_codec_t codec_buf;
> > int n_codecs;
> > img_t img;
> > io_stream_t *image_stream_fd;
> > char mime[64];
> > uintptr_t temp_encode_data = 0;
> >
> > /* allocate (image_size/sizeof int-(4bytes)) elements of type
int */
> > if (NULL == (img_buf = calloc((image_size / (sizeof(uint32_t))),
> sizeof(uint32_t)))) {
> > _error("%s: Memory allocation for %d bytes failed",
__FUNCTION__,
> image_size);
> > return ENOMEM;
> > }
> >
> > /* Lavin : copy the image RGB values linearly to the above
allocated
> img_buf, from your rectangular array in memory */
> >
> > /* Lavin : at this point I assume that you have already copied the
> image data to img_buf.*/
> >
> > /* Lavin : NOTE: you can very well use your rectangular array
directly
> as image_buf as well :) */
> >
> >
> > //Attaching to the image library
> > memset(&img,0,sizeof(img_t));
> >
> > /* get the resolution details */
> > img.w = 1440; // 1440 or 960 , use accordingly
> > img.h = 540; // 540, use accordingly
> >
> > img.format = IMG_FMT_RGBA8888;
> >
> > img.flags |= IMG_FORMAT | IMG_W | IMG_H | IMG_DIRECT;
> >
> > img.access.direct.data = img_buf;
> > --> img.access.direct.stride = (img.w * 4 );
> >
> > if ((result = img_lib_attach(&ilib)) != IMG_ERR_OK)...
View Full Message
|
|
|
Ronald Burkey
|
Re: Creating a PNG output file. [bcc][auto-ip]
|
Ronald Burkey
08/17/2011 1:08 PM
post88170
|
Re: Creating a PNG output file. [bcc][auto-ip]
True. I don't lack space, so that doesn't actually concern me. But I
gather you don't know how it can be done, so the point is moot.
Thanks,
Ron
On 08/17/2011 12:02 PM, Lavin Pottekkat wrote:
> Though i have not tried changing the compression techniques, i have seen noticeable difference in the size of the
images created with different formats.
>
> Regards,
> Lavin
> ________________________________________
> From: Ronald Burkey [community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 9:52 PM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file.
>
> One final (I hope) question: If JPGs were being output rather than
> PNGs, how can the quality/compression be set?
>
> -- Ron
>
>
|
|
|
Lavin Pottekkat
|
RE: Creating a PNG output file. [bcc][auto-ip]
|
Lavin Pottekkat
08/18/2011 3:15 AM
post88180
|
RE: Creating a PNG output file. [bcc][auto-ip]
No idea how you can change the compression /quality :(,
Check if img_load_resize_file() is of any use....
Regards,
Lavin
-----Original Message-----
From: Ronald Burkey [mailto:community-noreply@qnx.com]
Sent: Wednesday, August 17, 2011 10:38 PM
To: advanced-graphics
Subject: Re: Creating a PNG output file. [bcc][auto-ip]
True. I don't lack space, so that doesn't actually concern me. But I
gather you don't know how it can be done, so the point is moot.
Thanks,
Ron
On 08/17/2011 12:02 PM, Lavin Pottekkat wrote:
> Though i have not tried changing the compression techniques, i have seen noticeable difference in the size of the
images created with different formats.
>
> Regards,
> Lavin
> ________________________________________
> From: Ronald Burkey [community-noreply@qnx.com]
> Sent: Wednesday, August 17, 2011 9:52 PM
> To: advanced-graphics
> Subject: RE: Creating a PNG output file.
>
> One final (I hope) question: If JPGs were being output rather than
> PNGs, how can the quality/compression be set?
>
> -- Ron
>
>
_______________________________________________
Advanced Graphics
http://community.qnx.com/sf/go/post88170
|
|
|
|