batch import JPGs as flashcards

istudies's Avatar

istudies

09 Feb, 2017 12:39 PM

Hi, I have a load of JPG images I would like to batch import in Studies as individual study flashcards. Is that possible or do I have to go through the tedious procedure of manually creating individual flashcards and dropping the pic into each of them ?

  1. Support Staff 1 Posted by drewmccormack on 09 Feb, 2017 02:42 PM

    drewmccormack's Avatar

    I'm afraid your best bet may be to make them by hand.

    There are import options. If you go to the help, you can read about a way to put the images in a folder, add a comma-separated values text file with the names of the image files, and then zipping it up. This format is called 'studyarch', and you can read more in the help pages. But it depends on how comfortable you are doing those things.

    Even if you can import the JPEGs, you still may need to edit the notes, to add questions or whatever. Import would only give you one-sided study notes.

    If you are prepared to share your images with me, I could probably use a script to generate a studyarch file that you can import and send it back to you.

    Kind regards,
    Drew

  2. 2 Posted by istudies on 09 Feb, 2017 03:10 PM

    istudies's Avatar

    Well, one-sided studycards would do for the moment.
    Ok, well thanks for your willingness to script that folder.
    Here ya go :

    http://www.filedropper.com/311pic

  3. Support Staff 3 Posted by drewmccormack on 09 Feb, 2017 03:44 PM

    drewmccormack's Avatar

    Here you go: https://www.dropbox.com/s/dfkjb1yu70eith6/Images.studyarch?dl=0 <https://www.dropbox.com/s/dfkjb1yu70eith6/Images.studyarch?dl=0>

    To see how I did it, you just have to change the file extension from ‘studyarch’ to ‘zip’, and then you can double click to unpack.

    In short, the steps are:

    1. Setup the folders that you see when you unpack. You need Archive, Groups, Ungrouped, Images
    2. Copy your images into the Images folder
    3. Add a text file to the Images folder called Data.tsv
    4. In that file, add the line

    1 image

    5. After that first line, paste all the filenames of the images
    6. Zip the Archive folder by right clicking and choosing ‘Compress’
    7. Change the file extension from ‘zip’ to ‘studyarch’

    Kind regards,
    Drew

  4. 4 Posted by istudies on 10 Feb, 2017 08:37 AM

    istudies's Avatar

    ok, thanks, the import worked.
    Thanks for the indications, which I will try out.

    It might be helpful though to add such a script in the menu bar options or a button to click to automate such a process for the dummies we are. Maybe this could be included in a small futur update ?

  5. Support Staff 5 Posted by drewmccormack on 10 Feb, 2017 08:59 AM

    drewmccormack's Avatar

    I’ve added it to the feature request list.
    Not sure how many people want to have cards with just an image though, and if you are going to add text or a question, it is probably just as easy to drag in the image at the same time.
    Glad it worked for you in any case.
    Kind regards,
    Drew

  6. 6 Posted by Dmitri on 01 Jun, 2018 10:03 PM

    Dmitri's Avatar

    Is there a way to import images into one-sided flashcard, while importing image file name on the second side?
    or
    import file name on the second side, and content put in brackets on the first side together with image, like image title, or head/footnote?
    In this case, I will save my images (for medical students) as:
    Diagnosis (clinical history).jpg
    so that Diagnosis will go on the second side and clinical history as a footnote on the first side.

  7. Support Staff 7 Posted by drewmccormack on 03 Jun, 2018 02:42 PM

    drewmccormack's Avatar

    I would recommend you set it up as your own study arch file. See http://studiesapp.com/studyarch for details.

    Kind regards,
    Drew

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac