Ticket #560 (closed Defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Cannot replace topic type icon on canvas

Reported by: JuergeN Owned by: jri
Priority: Major Milestone:
Component: DeepaMehta Standard Distribution Version: 4.1.2
Keywords: Cc:
Complexity: 3 Area:
Module:

Description (last modified by JuergeN) (diff)

In the demo instance of 4.1.13 I have uploaded a new icon file for books. I have retyped it to icon and I have created a new topic type book. In view config I changed the icon to the new icon, but it does not display on the canvas.

Attachments

upload-error.png (41.4 KB) - added by jri 11 years ago.

Change History

comment:1 Changed 11 years ago by JuergeN

  • Status changed from new to assigned
  • Owner set to jri
  • Description modified (diff)

comment:2 Changed 11 years ago by jri

From what you've written you did everything right.

I just tried it, and it works for me:
http://demo.deepamehta.de:8083/topicmap/1545

I uploaded an icon file (Clear Green Button.png) via FTP to the file repo. It appears in the File Browser. Retype to Icon. Create Topic Type Book. Assign the icon to the type's view config. For me it works.

Changed 11 years ago by jri

comment:3 follow-up: ↓ 4 Changed 11 years ago by jri

Oh, I tried it now with DM File Browser's Upload feature and it didn't work. The Webclient brings up an alert box (see screenshot). Is that what you were experiencing?

comment:4 in reply to: ↑ 3 Changed 11 years ago by jri

Replying to jri:

Oh, I tried it now with DM File Browser's Upload feature and it didn't work. The Webclient brings up an alert box (see screenshot). Is that what you were experiencing?

This was a filesystem permission problem. I shouldn't upload files or create directories via FTP as they have the wrong filesystem owner then. Creating Folders and Upload Files with DM's Filebrowser works properly.

You used DM's Filebrowser for uploading the icon file, right? So you did everything right, and I can't see what your original problem was.

comment:5 Changed 11 years ago by JuergeN

Yes, I used the file browser and upload worked fine. But maybe my icon did not have the right properties/size. What are the premisses for and icon in terms of size and type (.ico/.png)?

comment:6 Changed 11 years ago by jri

There are no hard requirements for the icons. Anything the browser can display. However .ico might not recommendable, as it is a proprietary Microsoft format. I don't know about browser support.

I recommend PNG. With proper transparency for the background parts.

Size convention is 32x32 pixels but is not a hard requirement. However the screen layouts might not be 100% perfect otherwise.

comment:7 Changed 11 years ago by JuergeN

OK. I did another test today. I uploaded a png file and retyped it to icon. Then I created a new topic type and chose the new icon. All worked fine.

The only difference from my side was that I have resized the icon from 256x256 to 32x32 pixel. So I think we can ust keep this in mind and close the ticket.

comment:8 Changed 11 years ago by jri

  • Status changed from assigned to closed
  • Resolution set to fixed

Thanks for feedback!

Note: See TracTickets for help on using tickets.