cancel
Showing results for 
Search instead for 
Did you mean: 

Lost image quality when uploading graphic as bitmap file in SE78

Former Member
0 Kudos

Please could someone offer any advice?

I am trying to upload a scanned signature in SE78 to include on a smartform. Originally, it was coming up with a grey background but I resolved this by scanning it at a higher resolution (300 dpi) and converting it to a 256 color bitmap file.

However, the signature looks OK when I preview it on the screen but when I see it printed out, the image is very grainy and pixelated.

Suggestions would be much appreciated. Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Tecoma

open that scanned image with Microsoft office picture manager

their from Menu select File->properties to see current dimension settings.

and increase the dimensions settings going through Menu picture->Resize.

then upload the picture into SAP.

this may be solve your problem..

-Sudheer

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for your help.

I have played around with different combinations of your suggestions and have got a lot closer to the quality I was hoping for (although not perfect).

One thing I don't really understand with resizing is that although it increases the number of pixels, it also increases the size of the image so I wasn't sure how this should be done.

Former Member
0 Kudos

Hi,

I have the same problem.

The image color is altered.

The image is a logo with blue, black and white colors but:

1. The white turn grey

2. The blue is change in rings with different blue.

I tried to resize up to 200% using Microsoft picture manager.

Same result.

One more thing, we are using adobe forms. But we loaded the image through SE78 in BMP format.

Have you found other solution since 2011 to keep the image intact?


Regards

Daniel

Private_Member_7726
Active Contributor
0 Kudos

Hi,

To avoid SE78/BDS having to convert your image, load a .bmp with maximum 8bpp (256 colors) in 75, 100, 150, 200 ,300 or 600 dpi resolution. Monochrome, 4 bpp (16 color) grayscale should also be accepted without conversion. Anything else like 24bpp color will be interpolated down to 8bpp max using "nearest color" algorithm with lamentable results, or not loaded or processed correctly like 16 bpp (if I remember correctly off the top of the head).

The reason SAP does this is - 8bpp is the maximum OTF BM command can output.

So adjust your images outside SAP, and if your tools are not smart enough to preserve true white (RGB 255, 255, 255) during adjustments, edit the palette after you are done re-sizing and decreasing color depth, to change the "slightly gray" color back to RGB white...

cheers

Jānis

Former Member
0 Kudos

Hello Janis

Thank you for your answer.

We just found another post proposing to use the MIME repository.

That MIME repository solution is the one we will use.

In resume, we imported the image through the tcode SE80 in the MIME repository, than we used the following method to retrieve the image to pass to adobe form.

--------------------------

DATA: o_mr_api     TYPE REF TO if_mr_api,

            is_folder      TYPE bolle_d,

            e_emage     TYPE xstring,

            l_loio           TYPE skwf_io.

IF o_mr_api IS INITIAL.

  o_mr_api = cl_mime_repository_apu=>if_mr_api~get_api( ).

ENDIF.

CALL METHOD o_mr_api->get

  EXPORTING

     I_url     =     '/SAP/PUBLIC/IMAGE_TO_DISPLAY'

   IMPORTING

     e_is_folder     =     is_folder

     e_content       =     e_image

     e_loio             =     l_loio

   EXCEPTION

     parameter_missing = 1

     error_occured          = 2

     not_found                 = 3

     permission_failure     = 4

     OTHERS                    = 5.

----------------------

/SAP/PUBLIC/IMAGE_TO_DISPLAY = imported image container

e_image = Contain the xstring of the image that will be pass to the adobe form parameter.

Regards

Daniel

Former Member
0 Kudos

Like proposed above you can play a bit with the resolution on BOTH ends.

Importing with some other resolution and/or printing with some other resolution.

But you can as well play a bit with colored and black&white images. Even if you got a pure black&white logo, it might look better importing it as colored image,

nayan_sahu
Explorer
0 Kudos

HI Tecoma,

You can maintain any picture Resolution in smartform it self. While putting a graphic window

in the smartform there is a option Resolution. Sap system provide some Resolution so according

to your requirement you can put your Resolution.

Thanks

Nayan kumar sahu