Jump to content
C4 Forums | Control4

Changing icon in c4i driver (AV_GEN)


OceanDad

Recommended Posts

I have a modified Pioneer DVD IR driver in a project - I used it as the template to create an IR driver for a Dreamlink T2 IP TV box.  Driver works fine, but of course it shows up with a DVD icon on OSD/apps.  I'd like to modify the icon to something more suitable.

I understand that I will first need to convert it from .c4i to .c4z and then unzip etc.  However, this is an AV_GEN based driver originally, so I can't use Driver Editor 3.0 on it.  I can open it in Driver Editor 2.01, but I'm unsure how to/if it is possible to convert from .c4i to.c4z in DE 2.01.

Can anyone help me out here ?

Link to comment
Share on other sites


  • 2 weeks later...

No need to resize icons by hand. Use imagemagick.

Run these commands by hand, or create a bat file (if on Windows) or a shell script (if on a *ix OS such a Linux or macOS).

(Assuming imagemagick's executables are in your PATH.)

magick convert deviceicon.png -resize 70x70 70x70.png
magick convert deviceicon.png -resize 90x90 90x90.png
magick convert deviceicon.png -resize 300x300 300x300.png
magick convert deviceicon.png -resize 512x512 512x512.png
magick convert deviceicon.png -resize 1024x1024 1024x1024.png

Example bat file (my first, so not a stellar example, but it gets the job done):

@echo off
SET filename=%1
FOR /F "tokens=2 delims=." %%A IN ("%filename%") DO (set extension=%%A)
FOR %%F IN (70x70,90x90,300x300,512x512,1024x1024) DO (magick convert %filename% -resize %%F %%F.%extension%)

Save, and run as

imageresizer deviceicon.png
Link to comment
Share on other sites

1 minute ago, msgreenf said:

even better on the mac image resizing is built in the command shell.  So you can do it without any 3rd party utilities 

Cool, didn't know that.

Although the nice thing about multiplatform tools is that you can learn them once and then use them on any system.

(Then again, learning to use native tools has its upsides too.)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.