Page 1 of 1

Compile problem

Posted: Fri Apr 22, 2016 8:27 pm
by mouhcinedu92
Hi everyone !
I'm work on a a photoreal scenery .
I'v modified .bmp on SbuilderX313/Tools/Work
But when I compile this modified .bmp I have a problem !
"BMP header is corrupt."
"Unable to open data source C:/Programm...work/"
Failed to create data source .

Re: Compile problem

Posted: Sat Apr 23, 2016 1:46 pm
by luisfeliztirado
Perhaps the image editing tool you use is not saving the file correctly or in a modified format. Please provide more details.

Best regards.
Luis

Re: Compile problem

Posted: Sat Apr 23, 2016 9:05 pm
by mouhcinedu92
I just use GIMP and "export as image" in a my document and copy the file in my document to Sbuilder Tools/Works . It's a BMP file I just ramplace the original .bmp to the modified .

Re: Compile problem

Posted: Sun Apr 24, 2016 2:08 am
by luisfeliztirado
If you try to compile with the original image, do you get the same error?

Best regards.
Luis

Re: Compile problem

Posted: Sun Apr 24, 2016 4:16 pm
by mouhcinedu92
No I'dont get this error with the original file .

Re: Compile problem

Posted: Sun Apr 24, 2016 7:26 pm
by mouhcinedu92
But the name of original and modified is the same i just ramplace it by the modified

Re: Compile problem

Posted: Mon Apr 25, 2016 2:15 pm
by mouhcinedu92
I have the same .txt file for the modified file and original file .
I use the .txt file for the modified file .

Re: Compile problem

Posted: Mon Apr 25, 2016 4:07 pm
by luisfeliztirado
Clearly, compilation is not the problem. The GIMP seems to be changing the file in some way.

When exporting an image, aren't there some options available? Please make sure that the bitmap is not being compressed.

Best regards.
Luis

Re: Compile problem

Posted: Mon Apr 25, 2016 6:27 pm
by mouhcinedu92
In the propriety the original file and the modified is the same BUT the original file is 140 Mo and the modified is 105 Mo .

Re: Compile problem

Posted: Tue Apr 26, 2016 2:32 pm
by mouhcinedu92
The modified file .bmp that doesn't compil at the left and on file .bmp that work good at the right (not modified by gimp).

Re: Compile problem

Posted: Tue Apr 26, 2016 3:17 pm
by luisfeliztirado
I see that your image has 32 bit color. As far as I know, Resample will only accept 24 bit bitmaps, so you may want to check that. Perhaps you are not flattening your image before exporting it.

Perhaps you could try something different if the GIMP modified bitmap does not compile correctly.

Resample will also accept TIFF files as a source. So, you could export your modified image as a TIFF image (make sure it is not RLE compressed) and see if that will compile correctly.

You will probably have to modify the inf file and change the name of your source file, since it will be a tif, not a bmp. Also, you will have to compile manually; just make sure the source image and inf file are in the same folder as Resample, then simply drag and drop the inf file on top of Resample.

Clearly, the GIMP is somehow changing your bitmap. There are not a lot of options when exporting a file as a bitmap, essentially just color depth, but check to see that there is nothing strange there.

Oh, and you might also check to see if you have the latest version of the GIMP and its dependent files.

Best regards.
Luis

Re: Compile problem

Posted: Thu Apr 28, 2016 12:16 pm
by mouhcinedu92
Thanks a lot Luis for your help ! I just use Paint and not Gimp and just save file .
Clearly Gimp is the problem probably because Gimp change my file !
I Will send you a picture of my scenery ! ;)