BLL
Posts: 230
Joined: Fri Jun 07, 2013 2:30 pm

display icon

Mon Jun 20, 2016 6:02 pm

Hi

I have copied my lazarus desktop file and edited it to run my lazarus produced program.

It works fine except it displays the diamond icon (I don't know its proper name), even though I have pointed it to Buccaneer.ico in my program's directory. What are the specs of this file, eg its size in pixels and must it be an.ico file?
Any help much appreciated

Brian

hello world :-)
Posts: 121
Joined: Sat Nov 14, 2015 7:12 am
Location: England, in an insecure cloud, ie. The Interwebs
Contact: Website Yahoo Messenger AOL

Re: Running a Script file

Wed Jun 22, 2016 11:21 am

BLL wrote:Hi

I have copied my lazarus desktop file and edited it to run my lazarus produced program.

It works fine except it displays the diamond icon (I don't know its proper name), even though I have pointed it to Buccaneer.ico in my program's directory. What are the specs of this file, eg its size in pixels and must it be an.ico file?
Any help much appreciated

Brian
.ico files are Windows icon files. I'm not sure if they work on Linux... they probably do, mentioning it just in case...
Also, check your capitalisation. Is it Buccaneer.ico or buccaneer.ico ? With Linux, capitalisation matters...
Last edited by hello world :-) on Wed Jun 22, 2016 1:17 pm, edited 1 time in total.
I do moral support. Here: https://www.raspberrypi.org/forums/search.php?search_id=egosearch
I know I use too many parentheses. Problem?
Topics I have posted in: http://bit.ly/1NbDdr5
My topics: http://bit.ly/1ObnKqQ
All my posts: http://bit.ly/1OHzje7

User avatar
Pilosopong Tasyo
Posts: 116
Joined: Wed Apr 06, 2016 11:43 am
Location: /root

Re: Running a Script file

Wed Jun 22, 2016 11:58 am

Use imagemagick's convert tool to convert the .ico file to the more suitable .png file format.

Code: Select all

convert Buccaneer.ico Buccaneer.png
You'll then have several Buccaneer-##.png files to choose from (all different pixel sizes).

Install imagemagick if necessary.
Give a man a ghoti and he'll eat for a day; teach him how to ghoti and he'll eat for life. Ghoti?! - http://i.imgur.com/mAfBUdi.png
How To Ask Questions The Smart Way - http://www.catb.org/esr/faqs/smart-questions.html

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: Running a Script file

Wed Jun 22, 2016 12:21 pm

The .ico files will work, I'm using some but they are the individual icons pulled out of the set. It may have trouble with the normal Windows .ico file. From what I've see all of the icon files provided with Raspbian are .png, .xpm, or .svg.

BLL
Posts: 230
Joined: Fri Jun 07, 2013 2:30 pm

Re: Running a Script file

Wed Jun 22, 2016 6:38 pm

Hi all
Thanks for the replies. I used a .ico file as that is what lazarus uses!

I tried imagemagick on 2 ico files and it gave the following error message:

convert: insufficient image data in file `/usr/shared/Buccaneer/Buccaneer.ico' @ error/icon.c/ReadICONImage/449.
convert: no images defined `/usr/shared/Buccaneer/Buccaneer.png' @ error/convert.c/ConvertImageCommand/3210.

I have been careful about the case of letters!

Brian

User avatar
Pilosopong Tasyo
Posts: 116
Joined: Wed Apr 06, 2016 11:43 am
Location: /root

Re: Running a Script file

Thu Jun 23, 2016 2:02 am

BLL wrote:convert: insufficient image data in file...
From what I read elsewhere, that messages seems to be an indication that the .ICO file might be corrupt and convert is not going to decode it. Can you upload the .ICO file and post the link?
Give a man a ghoti and he'll eat for a day; teach him how to ghoti and he'll eat for life. Ghoti?! - http://i.imgur.com/mAfBUdi.png
How To Ask Questions The Smart Way - http://www.catb.org/esr/faqs/smart-questions.html

Return to “General discussion”