# \[Feature Request\] Preview for AI Adobe Illustrator files

**URL:** <https://tagspaces.discourse.group/t/feature-request-preview-for-ai-adobe-illustrator-files/226>\
**Category:** Feature requests\
**Created:** [December 6, 2023, 3:14pm UTC](https://tagspaces.discourse.group/t/feature-request-preview-for-ai-adobe-illustrator-files/226 "2023-12-06T15:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ooii](https://yyz2.discourse-cdn.com/free1/user_avatar/tagspaces.discourse.group/ooii/32/82_2.png) [@ooii](https://tagspaces.discourse.group/u/ooii)\
**Post date:** [December 6, 2023, 3:14pm UTC](https://tagspaces.discourse.group/t/feature-request-preview-for-ai-adobe-illustrator-files/226/1 "2023-12-06T15:14:53Z")

</div>

Hi,  
(I moved this post from General section to Features Request’s one)  
In my need to preview Adobe Illustrator files, I figured out that AI files are pdf files actually. So replacing the ai extension by pdf makes the preview works great.  
I tried then to edit the pdf-viewer to support AI files. I tried with the 2 different options that I describe without success.  
In both cases, I’m running Tagspaces web app in docker.  
1- I edited the package.json file of the pdf-viewer and added the ai extension as follows:

```auto
"fileTypes": [
      {
        "ext": "pdf",
      },
      {
        "ext": "ai"
      }
    ]

```

2 - I duplicated the pdf-viewer folder and named it ai-viewer. Inside, I replaced the pdf supported extension by ai as follows:

```auto
"fileTypes": [
      {
        "ext": "ai"
      }
    ]

```

I also added `ai-viewer` in the list of viewer of Tagspaces in `/usr/share/nginx/html/modules/@tagspaces/extensions/package.json` file.  
Despite these 2 attempts, I was not able to preview AI files.  
Is there something else I have to add to make the viewer compatible with AI files?

Thanks.
