-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Issue with image scaling from shortcodes #4202
Comments
I have looked into this and tried to add a failing test for it. The issue isn't what I thought initially; seems to be some kind of race where it doesn't fail all of the time. I will have to look into this more closely. In fact, I can not reproduce it at all at the moment. |
Never mind, I can reproduce it now. |
@RickCogley I will cut a release with a patch for this tomorrow -- this should be clear-cut, but you could give it a spin if you want. |
Source and destination will be the same when this happens, but it should be correct. See #4202
Of course @bep, I'll test. Thank you for fixing it so quickly over your
holiday! :-)
…On Mon, Jan 1, 2018 at 10:26 PM, Bjørn Erik Pedersen < ***@***.***> wrote:
@RickCogley <https://github.com/rickcogley> I will cut a release with a
patch for this tomorrow -- this should be clear-cut, but you could give it
a spin if you want.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4202 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAfRSJNqgTn0CRN02Oqw79lTAZPZTmhLks5tGNz5gaJpZM4RP2LQ>
.
--
Rick Cogley
rick.cogley@esolia.co.jp | *M*: 090-9959-5452
* Bilingual IT solutions and management firm—eSolia**eSolia Year End
Holiday*: *28th Dec through 4 Jan Inclusive, back in office from 5th Jan
2018.*
--
*This email message and any attachments are confidential, and are meant to
be read by the intended recipient only. If you are not the intended
recipient, we would request you delete this message or any attachments
without reading or distributing, and kindly advise eSolia Inc. (contacts:
esolia.com/about <http://esolia.com/about>). Thank you in advance.*
|
Ok @bep, happy new year, and I tested after compiling. This time it still required two runs after I updated the post in question, but, it did work. What I did:
Anyway, it appears to work somehow. I'll let you know what else I see if anything. Thanks again.
|
@bep sorry. After I added back the delete lines, I did not re-source |
Thanks. I have also added some shortcode examples here: https://gohugo.io/about/new-in-032/#image-processing-examples |
cool! I'll use your shortcode so I can learn something from it. :-) |
The scratch construct is "uglish", but that will improve when this is fixed (Go 1.11): |
Yes; I just tested with the Hugo docs when deleting the resources folder. I didn't test this good enough :-) And I'm not totally sure what happens, either, but I'll reopen this and have another look. The workaround for Netlify is, I think, to build locally and commit your |
See #4213 |
@jensamunch this is now fixed in 0.32.2. I have verified it on Netlify here: https://next--gohugoio.netlify.com/about/new-in-032/ ... i.e. I deleted the /resource dir from the GitHub repo; I would, however, recommend that you commit that folder to Git as it will make the builds much faster. |
amazing @bep - i just can't believe what you've done with this project! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
There is a dependency issue there; it works if you trigger a second build. This would probably work if we use the source instead of the published image as source, which also makes more sense.
See https://discourse.gohugo.io/t/hugo-0-32-related-questions-discussions/9770/3
The text was updated successfully, but these errors were encountered: