sstarcher / paprika-exporter

Export recipe data out of Paprika into YAML
Apache License 2.0
12 stars 4 forks source link

Embedded images in directions #1

Open hquick81 opened 4 years ago

hquick81 commented 4 years ago

Hi,

i tried your script and its working well so far thx for that ! But i have some images embedded in my directions like

- '[photo:1]'

And it seems that they are not being exported. Any idea how this might work ?

Thx and greetings

Holger

sstarcher commented 4 years ago

Hmm, that might be a reference to the images. My guess is it's saying at this location the first photo for this recipe should be inserted. Prior to displaying it would you likely have to process the text and look for [photo:##] and at that point insert the first photo.

To allow you to do that I might have to export additional image data. Let me know what you think.

datapolitical commented 3 years ago

I’d like to export additional image data as well. Right now the thumbnail images are very low resolution and they crop weirdly.

if it could download the additional images it would look a lot nicer, and it would allow things like images for individual steps to be included.

datapolitical commented 3 years ago

Re-upping this because the default images are extremely low resolution and don’t look very nice on the web. But I can’t figure out how the API returns additional photo data, which makes editing the code hard.

sstarcher commented 3 years ago

Here is an update to pull the larger images.
https://github.com/sstarcher/paprika-exporter/commit/46271f1f07872572cc402045fad5b926cd0985c8

sstarcher commented 3 years ago

Looks like sync/photos exists for getting a link to all photos