-
Notifications
You must be signed in to change notification settings - Fork 9
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
Include images/captions in InDesign export #22
Comments
Input from @ivankruchkoff:
|
Hello @jeffpaul , et.al, thanks so much for developing the 8-day-week plugin. We love the concept, but really needed the image download functionality. So we decided to throw our dev team behind it and join in your fun. So here's the functionality we're adding and will share with you shortly:
If anyone has any suggestions or additions, or would like to beta test this with us, please let me know. |
Hi, I've had a programmer do some custom work (back when 8dayweek was in v 1.0) to implement this to my setup. I don't know much about php, so I can't tell exactly what/how was done, but I can share my files. But functionality wise: it packs fullsize images in a zip along with post xmls. It sorts articles in seperate folders, so you know which images bellong to which xml (/article name/). It includes both individual images and galleries. Inside the xml text it marks where an image was using "## image41414.jpg ## caption" so it doesn't just list all the images in the end (in our experience designers tend to miss indesign notes or any smaller symbols, but big ## in text do stand out). Featured image is added under headline (featured image caption is added as first text inside content). Because image placements matter. Since I can't help with programming, I'd be willing to financially support this development. @refsland maybe we can get in touch and pull our ideas and test together. |
Here you go @jeffpaul zip (link expires by 5. 11.) My modifications were (bellow are instructions I gave the programmer):
|
Hey @bmarshall511 I was hoping for my changes to be incorporated into main release, but I guess that hasn't happened yet 🙁 @jeffpaul will you be assigning this to anyone else? Since Ben here seems to know php, perhaps he can be of use here? @bmarshall511 I can provide you with my files (link active till end of june). Would you be kind enough to provide me with any optimizations, bugfixes, php compatibility changes you make? |
Hey @xLesy! It's awesome to hear from you! 😄 Thanks a lot for sharing the files with me. I've had a chance to take a look, and it seems that there are modifications in nearly every plugin file. My guess is that these changes were made based on a previous version of the plugin. I was wondering if it would be possible for your team to update to the latest version of the plugin and incorporate your changes into it. That way, it would be much easier for me to distinguish between the specific changes you've made and the updates made to the plugin since then. Right now, it's a bit challenging to separate your changes from the modifications made in previous plugin updates. I really appreciate your efforts and the files you've shared. It's just a matter of making it a tad easier for me to review and understand the scope of your changes in relation to the plugin's updates. Thanks a bunch! 🙏 |
Yes @bmarshall511, the changes were made on v1.0.0 in 2018 (at the time it seemed the plugin was dead). Unfortunately I don't have a team. I paid a programmer on a freelancer site to implement those changes. Perhaps you could compare to v1.0.0 of the plugin and then you can more easily see what was changed 🤷♂️ Some changes were just php 7 compatibility, which I assume were already implemented, so you can ignore those. |
Hey @bmarshall511 I've given your version a test and it all seems to work fine. Exports seem identical to my old version 👍 When I inspect the page I see an error in my console: "The byte stream was erroneous according to the character encoding that was declared. The character encoding declaration may be incorrect." I use special characters č,š,ž, so maybe you need to use UTF-8? I see the error was also there in my old version. It doesn't seem to have any negative effect. I'll just give a few recommendations to consider:
|
Newspaper owners could benefit from a feature wherein the images and corresponding captions attached to posts would be sent over as part of the InDesign export as well.
Potential solution would be to create a new sub-folder in the existing export file structure called "ArticleName" and within that, both the article .xml file, as well as either (a) the caption embedded into the image as metadata or as a fallback, (b) the caption info conveyed in another .xml file with some type of association to the image file name.
We will benefit from an example of an XML with an Image file and a caption (otherwise that's another chunk of time to figure out the format).
The text was updated successfully, but these errors were encountered: