Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VariableImporter not recognising images #78

Open
Any-Stupid-Name opened this issue Jul 16, 2024 · 6 comments
Open

VariableImporter not recognising images #78

Any-Stupid-Name opened this issue Jul 16, 2024 · 6 comments

Comments

@Any-Stupid-Name
Copy link

Hi
Some years back I made a set of templates using your excellent script.
The client requested an update last week.
I literally copied the folder, changed the necessary elements in the spreadsheet and image folders, as in the original.
Made the CSV, tried to import it and it doesn't recognise the images when I do a test to preview it shows that one text and 4 images are not found.
Screenshot 2024-07-16 at 2 44 27 PM
Screenshot 2024-07-16 at 2 45 37 PM
Screenshot 2024-07-16 at 2 46 21 PM
Screenshot 2024-07-16 at 2 47 36 PM

As I said it's an exact copy of the working one, that still works, just in a different folder, and different images. The Variable names are the same, etc.

Any help
Is it a bug with the new Illustrator?

Rob

@hoochalaffa
Copy link

When this happens to me it's because the / is supposed to be \ depending on the platform or the relative path setting is missing a / at the end or in the csv it has an extra / so when combined it has two // where it's supposed to be one.

The problem that I identified over time was my flawed strategy in finding and selecting the images to import. For one project early on, I had thousands of files I was trying to identify by property within complicated file structures "league / team / jersey / size / letter" and I was attempting to exactly target through excel the right structure. Eventually I started organizing a separate table of images with full file paths, extracting the attributes into columns, then from the table where I assembled the dataset find the right image with full path according to whatever attributes I was looking for.

If you can provide a sample set of images and your dataset, I am willing to test it out.

sample dataset.xlsx
Screenshot 2024-07-16 091329
Screenshot 2024-07-16 090821
Screenshot 2024-07-16 091244
Screenshot 2024-07-16 090829

@Any-Stupid-Name
Copy link
Author

I did a very simple test, and it still has errors.
You can see the elements here:
https://www.dropbox.com/scl/fo/v78ls5fn9j20tghbcswc3/ALHDSggYGRzNENR5-0QRYSY?rlkey=oza90ysv12qv2lafyqflwedd3&dl=0
I'm on a Mac, so not sure about the / \ issue. As I said, it worked perfectly fine 2 years ago.

Thanks

Rob

@hoochalaffa
Copy link

The images need to be linked in, not embedded. Video attached of my using the test files, didn't have to change the csv, only the ai file.

ai-variable-data-troubleshooting.mp4

@Any-Stupid-Name
Copy link
Author

Super, I will give it a go!

Thanks

Rob

@hoochalaffa
Copy link

hoochalaffa commented Jul 16, 2024 via email

@Any-Stupid-Name
Copy link
Author

Did it work?

On Tue, Jul 16, 2024 at 11:00 AM Any-Stupid-Name @.> wrote: Super, I will give it a go! Thanks Rob — Reply to this email directly, view it on GitHub <#78 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL46CLALZ2HKOX7DRP3XJRTZMUYPHAVCNFSM6AAAAABK6NQH7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGEZTONBVGI . You are receiving this because you commented.Message ID: @.>

Yep, thank you. I was an idiot not to think of that!

Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants