Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > CopperCube > Help with CopperCube
How to add icon to my prefabs
Author Text

easara
Registered User
Quote
2021-10-05 11:51:41

I created a new prefabs but I don't know how to add a icon to it. Help me please.


VP
Guest
Quote
2021-10-05 13:13:17

Just add 32x32 pixel bitmap (.bmp) files in the same folder as the prefab. Make sure it's spelled eXacTly the same as the actual prefab (case sensitive). The previews will show in the prefab window in Coppercube (may require a restart of coppercube).


easara
Registered User
Quote
2021-10-05 18:08:56

I'll tray it . Thank you man


cristian_emz
Registered User
Quote
2021-10-06 02:21:40

@ VP
hi could you make a video to show how to do it? and upload it to youtube? Thank you so much


veganpete
Registered User
Quote
2021-10-06 15:57:44

I don't use youtube but if you want to post the icon file here (or even just a a screenshot of your prefab) I'll make the .bmp file for you and upload it here for you.

Then just copy it to your ambiera>prefabs folder on you C: drive.

You can share image links on this forum simply by using https://postimages.org/


easara
Registered User
Quote
2021-10-06 17:52:06

How I can convert image into .bmp 🙂


VP
Guest
Quote
2021-10-06 18:15:35

I use PC software (Affinity Photo), but there are online converters which will do the same - or there is GIMP which is a great free image manipulation program.

I haven't tried this website yet but it should work...
https://convertimage.net/

Also there's a free version of Photoshop (online)...
https://www.freeonlinephotoshop....

Whatever you choose, here's the basic procedure....
1- Import your image.
2- Crop the image to a square.
3- Resize the image to 32x32
4- Save the image as a bmp.

*Save/Move the file into the same folder (and with exact name) as the prefab.


VP
Guest
Quote
2021-10-13 23:16:57

Simplest way to convert the format is simply to rename "image.jpg" as "image.bmp"


j9907
Guest
Quote
2021-10-14 07:26:09

VP wrote:
Simplest way to convert the format is simply to rename "image.jpg" as "image.bmp"



Uhh, no. You can't convert formats by doing that. lol. That's like saying you can rename EXE to APK and it'll work. It'd be nice if Windows could do this, but it's not how it works sadly..


VP
Guest
Quote
2021-10-14 09:25:28

Renaming the file extension does work for images - it reassigns the associated programs to the new file extension.

Renaming an apk file as an exe will not work.

You can even completely remove the file extension of images and the metadata can still be read by graphics programs and the file can be opened.

This can be done with quite a few image (and audio) formats as they're interchangeable - all based on the same format. Works with Windows and Linux - not sure about Mac.


VP
Guest
Quote
2021-10-14 09:59:34

For my arcade cabinet's frontend, it needed all the image previews as a particular format - I had downloaded thousands of screenshots for all the ROMs/Games - none of them would display. Rather than convert them all to the correct format (which would have taken months), I just renamed the file extension using a batch script. Then they all worked - took less than a minute.

It's just a quick and dirty a trick. Renaming the extension obviously does not make changes to the file data, just the container (which tells the operating system what to do with the file).

Here's a quick example for you to try...

https://drive.google.com/file/d/...

I downloaded an image (from google) which had no file extension.

I then renamed the file and added several popular file extensions. The file is readable by softwares which expect the file extension but it also opens without the file extension.

Give it a try - you can open all these with paint (it's just renamed copies of the same image).

Once it's open, you can then export it to any format you like.

Obviously if I rename the test image as "test image.wav" it's not going to play as a song because it's still an image. That's not what I'm implying. The OP just wanted a way to get their pre-existing jpeg images to display as icons. I suggested several methods - renaming as a last resort.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons