[Solved] Bitmaps in Draw

Discuss the drawing application
Post Reply
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

[Solved] Bitmaps in Draw

Post by stuart299 »

Is it possible to edit the standard bitmaps that come with Draw? I can't find where they are stored, which would be the first step. Any guidance will be much appreciated.
Stuart
Last edited by Hagar Delest on Sun Jun 28, 2020 5:44 pm, edited 1 time in total.
Reason: tagged solved.
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Bitmaps in Draw

Post by RoryOF »

In the OO User Profile you should find a path .../4/user/gallery/

Also in the install directory for OO, a path similar to .../openoffice4/share/gallery/ ...
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

Thanks for the quick response. I have looked in the various "gallery" folders but they only seem to contain files ending .sdv and .thm which I can't do anything with. I was assuming that somewhere there would be a sub-folder with a list of .png files with names similar to the descriptions that appear in the Format:Area:Bitmaps listing. I can't even find the OO copies of bitmaps that I have imported via that dialog box. They're obviously well-hidden - which makes me think that they can't be edited.
OpenOffice 4.1.7 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Bitmaps in Draw

Post by John_Ha »

Most are not bitmaps as can be seen by stretching them - they scale perfectly without pixelating.

They are vector graphics and stored as .svg files in C:\Program Files (x86)\OpenOffice 4\share\gallery.
Clipboard01.png
Updating will overwrite any changes you make so you are better to add new ones to the gallery folder in the profile.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
Last edited by John_Ha on Sun Jun 28, 2020 1:49 pm, edited 1 time in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Bitmaps in Draw

Post by Zizi64 »

A workaround tip for extract the built-in background images:

Insert one or more of them into a Draw document into the background of some shape. Save it into .odg file format. Close the AOO/LO. Rename the file .zip extension. Unpack the images from the inner directories.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

John_Ha wrote:Most are not bitmaps as can be seen by stretching them - they scale perfectly without pixelating.

They are vector graphics and stored as .svg files in C:\Program Files (x86)\OpenOffice 4\share\gallery.

.....
It wasn't the symbols I was referring to, it was the "bitmaps" as they are called on the Area dialog box tab - i.e. the images for 'stone', 'water', 'mercury', 'wall', etc... I couldn't find any filenames that seemed to refer to these images amongst the obvious symbol ones (circle, arrow, etc...) - but I'll take another look in case I have overlooked them.
OpenOffice 4.1.7 on Windows 10
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

Zizi64 wrote:A workaround tip for extract the built-in background images:

Insert one or more of them into a Draw document into the background of some shape. Save it into .odg file format. Close the AOO/LO. Rename the file .zip extension. Unpack the images from the inner directories.
Many thanks for that suggestion - it was not something that I would have thought to do, and works perfectly of course.
OpenOffice 4.1.7 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Bitmaps in Draw

Post by John_Ha »

C:\Program Files (x86)\OpenOffice 4\share\gallery\www-back\marble.jpg etc.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

John_Ha wrote:C:\Program Files (x86)\OpenOffice 4\share\gallery\www-back\marble.jpg etc.
That's very helpful.
It hadn't ocurred to me to look in "www-back" for images :o But most of the images which appear under Area:Bitmaps are not in that sub-folder; so I'm still none the wiser as to where they may be hiding.
But I now have a work-around (thanks to Zizi64) to extract specific images, so that will do me for the time being.
Thanks to everyone for your help.
OpenOffice 4.1.7 on Windows 10
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Bitmaps in Draw

Post by John_Ha »

stuart299 wrote: most of the images which appear under Area:Bitmaps are not in that sub-folder; so I'm still none the wiser as to where they may be hiding.
Look in all sub folders of C:\Program Files (x86)\OpenOffice 4\share\gallery\ or please give the names of some missing images.
Last edited by John_Ha on Sun Jun 28, 2020 4:02 pm, edited 1 time in total.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

"Brownstone", "Wall", "Gravel" to name just three...
OpenOffice 4.1.7 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Bitmaps in Draw

Post by RoryOF »

If you open the Gallery (/Tools/Gallery) and select an image in the display, on my computer it gives the address and name of the file containing the image you have selected:
Gallery.png
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
stuart299
Posts: 13
Joined: Fri Jul 31, 2015 11:32 am

Re: Bitmaps in Draw

Post by stuart299 »

Yes, but that's not what I'm talking about.
It's the images accessed through the Area:Bitmaps that you can use to fill a shape that I'm trying to locate.
But I have the work around suggested above, and so the "problem" is resolved for me.
OpenOffice 4.1.7 on Windows 10
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Bitmaps in Draw

Post by RoryOF »

I have looked into the source code; as far as I can see, the bitmaps are computed from some code sequence, but I stress I am not a C++ or Java programmer.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Bitmaps in Draw

Post by John_Ha »

Click HELP in the Bitmap selection dialogue pop-up for much information.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
MrProgrammer
Moderator
Posts: 4905
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: [Solved] Bitmaps in Draw

Post by MrProgrammer »

stuart299 wrote:"Brownstone", "Wall", "Gravel" to name just three...
I will use Wall an an example.
Zizi64 wrote:Insert one or more of them into a Draw document into the background of some shape. Save it into .odg file format. Close the AOO/LO. Rename the file .zip extension. Unpack the images from the inner directories.
This method avoids the rename/unpack steps, which may be difficult for some people. It saves the Wall bitmap.
• File → New → Drawing
• Format → Styles and Formatting → Default → Right-click → Modify → Area → Fill → Bitmap → Wall → OK
• Drawing toolbar → Rectangle → Drag inside drawing → Right-click → Convert → To Bitmap
• Right-click the bitmap → Save as picture
RoryOF wrote:As far as I can see, the bitmaps are computed from some code sequence
The bitmaps are in file config/standard.sob in the user profile. I will guess that "sob" is an acronym for Star Office Bitmaps.
~ $ cd ~/Desktop/
Desktop $ mkdir Bitmaps; cd Bitmaps
Bitmaps $ unzip -j ~/"Library/Application Support/OpenOffice/4/user/config/standard.sob" "Pictures/*" | tail -n +2
  inflating: 100000000000000800000008DD0ADA29.png  
 extracting: 100000000000005E0000005E1A713443.png  
 extracting: 100000000000005E0000005E1E2E908A.png  
 extracting: 100000000000005E0000005E399CADCB.png  
  inflating: 100000000000005E0000005E4FF81E94.png  
  inflating: 100000000000005E0000005E5B963AC0.png  
 extracting: 100000000000005E0000005E60E90F8C.png  
  inflating: 100000000000005E0000005E71533790.png  
  inflating: 100000000000005E0000005E771798E6.png  
  inflating: 100000000000005E0000005E7FDCEED9.png  
  inflating: 100000000000005E0000005E9146F0E7.png  
 extracting: 100000000000005E0000005EA38222DC.png  
 extracting: 100000000000005E0000005EABCB7412.png  
 extracting: 100000000000005E0000005EAD372462.png  
 extracting: 100000000000005E0000005EB30A7831.png  
  inflating: 100000000000005E0000005ECD3186FD.png  
  inflating: 100000000000005E0000005ED0E4C6B8.png  
  inflating: 100000000000005E0000005ED5F5C24A.png  
  inflating: 100000000000005E0000005EDF9FDE90.png  
 extracting: 100000000000005E0000005EF7C28CD5.png  
  inflating: 10000000000000B4000000876EF466FB.png
Wall is the last file in the list above.
Bitmaps 82 $ unzip -p ~/"Library/Application Support/OpenOffice/4/user/config/standard.sob" Content.xml | 
             tidy -q --input-xml y --indent-attributes y 
<?xml version="1.0" encoding="utf-8"?>
<ooo:bitmap-table xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
                  xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
                  xmlns:xlink="http://www.w3.org/1999/xlink"
                  xmlns:svg="http://www.w3.org/2000/svg"
                  xmlns:ooo="http://openoffice.org/2004/office">
<draw:fill-image draw:name="Empty"
                 xlink:href="Pictures/100000000000000800000008DD0ADA29.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Sky"
                 xlink:href="Pictures/100000000000005E0000005E71533790.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Aqua"
                 xlink:href="Pictures/100000000000005E0000005EA38222DC.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Coarse"
                 xlink:href="Pictures/100000000000005E0000005E9146F0E7.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Space"
                 xlink:href="Pictures/100000000000005E0000005EAD372462.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Metal"
                 xlink:href="Pictures/100000000000005E0000005EB30A7831.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Wet"
                 xlink:href="Pictures/100000000000005E0000005E4FF81E94.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Marble"
                 xlink:href="Pictures/100000000000005E0000005E60E90F8C.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Linen"
                 xlink:href="Pictures/100000000000005E0000005EABCB7412.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Stone"
                 xlink:href="Pictures/100000000000005E0000005E771798E6.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Space Metal"
                 xlink:href="Pictures/100000000000005E0000005E399CADCB.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Pebbles"
                 xlink:href="Pictures/100000000000005E0000005EDF9FDE90.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Wall"
                 xlink:href="Pictures/10000000000000B4000000876EF466FB.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Red Wall"
                 xlink:href="Pictures/100000000000005E0000005E1E2E908A.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Pattern"
                 xlink:href="Pictures/100000000000005E0000005EF7C28CD5.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Leaves"
                 xlink:href="Pictures/100000000000005E0000005E7FDCEED9.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Lawn Artificial"
                 xlink:href="Pictures/100000000000005E0000005E5B963AC0.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Daisy"
                 xlink:href="Pictures/100000000000005E0000005ED0E4C6B8.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Orange"
                 xlink:href="Pictures/100000000000005E0000005E1A713443.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Fiery"
                 xlink:href="Pictures/100000000000005E0000005ECD3186FD.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
<draw:fill-image draw:name="Roses"
                 xlink:href="Pictures/100000000000005E0000005ED5F5C24A.png"
                 xlink:type="simple"
                 xlink:show="embed"
                 xlink:actuate="onLoad" />
</ooo:bitmap-table>
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Post Reply