in2code-de / instagram

Show instagram feed without API in a TYPO3 extension
https://www.in2code.de/agentur/typo3-extensions/instagram/
19 stars 13 forks source link

Local storing of images #13

Closed MKmecodia closed 2 years ago

MKmecodia commented 2 years ago

Hello, set up the extension, everything works great! Just one question: How can I store/cache the preview images locally? They always seem to link back to instagram.

Thanks

maikschneider commented 2 years ago

The original images are always saved to typo3temp/assets/tx_instagram/. If you use the current template file Resources/Private/Tempaltes/Profile/Show.html and use the f:uri.image viewHelper with adjusted dimensions, the calculated preview / thumbnail images are cached by TYPO3 automatically.

So make sure the images are really stored inside the typo3temp dir - maybe there is an issue with write permissions.

einpraegsam commented 2 years ago

Thx @maikschneider for helping out. Nothing to add here in my eyes. Because there is not bug, I will close this issue.

MKmecodia commented 2 years ago

I think I found our problem: The scheduler task instagram:importfeed gets the new posts automatically if we run it with cron job. It does not save the images locally though. It only does so if we run the task manually again. I'm not quite sure how to fix this, maybe you might have some ideas.

einpraegsam commented 2 years ago

If it works when started over Apache but not over CLI, maybe rights are missing?