Skip to Content
author's profile photo Former Member
Former Member

Why SAP resize an image loaded in SE78 Tcode?


Please let me explain you:

1._ I have a big image, this image:

2._ I open this image in a image editor and I change its resolution to: 298x382 as you can see here:

3._ I load this image in SE78, then I wanto to see in SE78 and Image looks very big and has a layer gray, no blank like original image as you can see in image below:

And in my smartform:

Why SAP does this? please help me. I need edit image and change de with transaparent to does not have that grey layer?


comesa1.PNG (455.0 kB)
resolution2.PNG (72.6 kB)
comesa2.PNG (77.1 kB)
comesa.PNG (65.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 24, 2014 at 04:39 PM


    1) I really recommend getting something better for image manipulation than the standard Windows thingy - the free IrfanView does everything I've ever needed for SAP bitmaps.

    2) white to gray problem, there are two possibilities:

    • if you are loading into SAP a .bmp with more than 8 bits per pixel (bpp) colors (that's 256 colors) it will be automatically converted during loading to no more than 8 bpp, because that's the maximum OTF bitmap command BM can output and white gets interpolated to gray during that process;
    • more likely, the white gets interpolated to "slightly gray" already during down-scaling in the Windows tool and then to even more gray by SAP;

    So try to reduce the color depth to 8bpp before loading and, if your tool is not smart enough to preserve white during downscaling or reducing color depth (IrfanView isn't), edit the color palette afterwards to turn the gray back into white. I can guide you how to do it in IrfanView if you still have trouble with this.

    3) the size problem

    I'm not quite sure what SAP does with 72 dpi images (you should see the resulting dpi after loading when you press "Header" button in SE78), but I always set the dpi to 100 or 300 (anything more is real overkill for logos and will increase the spool file sizes unnecessarily) before re-sizing images outside SAP. You should be able to re-size yet again for output in Smartform Graphics node when (increase dpi there to reduce output dimensions), but I don't like to mess with dpi there. I prefer to set the exact desired dpi before re-sizing, make sure SAP has loaded using same dpi, and set the exact same dpi in Graphics node.

    To summarize:

    - aim to create a 8bpp 300dpi bitmap of right size before loading it into SAP...

    - the reason SAP fiddles with your image during loading: OTF BM command can't just output any bitmap...



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.