Phillip Brooks Posted March 15, 2013 Report Share Posted March 15, 2013 It appears that new snippets (.PNG) files uploaded to lavag are having their meta-data sanitized. This removes the actual code from the snippet and makes it unusable for drag-and-drop to the block diagram. 1 Quote Link to comment
smarlow Posted May 27, 2015 Report Share Posted May 27, 2015 Old post, but I am having this problem, too. How does one post a snippet anyway? I've tried attaching them to the post, but they get resized, and the embedded code is stripped away. Not a very good feature for the premier independent LabVIEW web forum. Is there some other way to add a PNG to the message without attaching it, or clicking the "add to post" button? Here is an example of a snippet added using the attachment feature of the "More Reply Options" page. I also used the "Add to Post" link next to the attached file: Why does it shrink the image all the way down to a thumbnail? Most monitors today are huge, with wide aspect ratios, and plenty of resolution. Why not upload the PNG "as is"? Most snippets are below one screen in size, and any that are larger will get "resized" for display by the browser. Also tried the "Advanced Uploader": Being able to share snippets without the code getting stripped would be a good thing. Quote Link to comment
hooovahh Posted May 27, 2015 Report Share Posted May 27, 2015 I think I reproduced the steps you took, but I came to a different result. I posted a reply using the More Reply Options which is also known as the full editor. From there I picked the file by clicking on Choose File. Then I clicked Attach This File. This step might not be needed depending on the version of the uploader that you are using. Then I clicked Add to Post to add it to my reply. I was then able to click the image and get the VI source by dragging the image to my desktop. I wonder if it has to do with the size of the PNG you uploaded. It obviously scaled it which makes me think there is a maximum resolution the uploader accepts. EDIT: Yup just tested it, too large of an image is scaled, I'll let Michael know about his and see if there is something that can be done. Quote Link to comment
hooovahh Posted May 27, 2015 Report Share Posted May 27, 2015 Michael worked his magic, that he does so well and things should work now. I tested it on a pretty large block diagram and my browser zoomed out, but the image itself wasn't scaled on the server side, so I could still drag the snippet away and then into my blank block diagram. 1 Quote Link to comment
infinitenothing Posted December 10, 2018 Report Share Posted December 10, 2018 I can't get snippets working. Did they die in the recent site update? Example: I use the editor that shows up at the bottom of the thread and the "choose files" link. Using Chrome. Quote Link to comment
Michael Aivaliotis Posted December 11, 2018 Report Share Posted December 11, 2018 Please check again. I think something got changed in the upgrade, but i think i fixed it now. You can use this forum for testing: https://lavag.org/forum/2-for-testing/ Quote Link to comment
LogMAN Posted January 5, 2019 Report Share Posted January 5, 2019 (edited) On 12/11/2018 at 6:16 PM, Michael Aivaliotis said: I think something got changed in the upgrade, but i think i fixed it now. Unfortunately it isn't. Can you check again? Here is one of my posts for reference with multiple code snippets (also some of the previous posts as well): The first image has an original size of 26,392 bytes but the file in the post is only 12,304 bytes. That is the fully-zoomed image from here: https://lavag.org/uploads/monthly_2019_01/591079262_AccessingElementsinaFor-Loop_vi.png.739aeb22d70a5a697b28a8358c333ffb.png Let me know if I'm doing that wrong Edited January 5, 2019 by LogMAN Quote Link to comment
Michael Aivaliotis Posted January 7, 2019 Report Share Posted January 7, 2019 Can someone point me to an online post with a working snippet? On LAVA or elsewhere. Quote Link to comment
ShaunR Posted January 7, 2019 Report Share Posted January 7, 2019 2 hours ago, Michael Aivaliotis said: Can someone point me to an online post with a working snippet? On LAVA or elsewhere. I was going to be flippant and say "The NI forum has loads" but they don't work either. Quote Link to comment
JKSH Posted January 7, 2019 Report Share Posted January 7, 2019 4 hours ago, ShaunR said: I was going to be flippant and say "The NI forum has loads" but they don't work either. It used to work, then it stopped: https://forums.ni.com/t5/LabVIEW/Notice-Attach-VI-Snippets-to-post-rather-than-upload/td-p/3660471 Attachments (as opposed to inline images) should be fine, apparently. Quote Link to comment
hooovahh Posted January 7, 2019 Report Share Posted January 7, 2019 And referenced in that post is my work around. It isn't so much that the PNGs are having meta data stripped, it is that they have a custom image viewer which adds a scaling size. Viewing the raw image still allows snippets. Also downloading the snippet might work too. https://forums.ni.com/t5/Feedback-on-NI-Community/How-do-I-get-a-snippet-from-the-board-into-my-block-diagram/m-p/3763571#M15575 So Michael here is a working snippet from NI's site: https://forums.ni.com/t5/image/serverpage/image-id/214063iB57FB649CBEA2ED8 Quote Link to comment
infinitenothing Posted January 7, 2019 Report Share Posted January 7, 2019 (edited) This snippet works for me: So does this one: Edited January 7, 2019 by infinitenothing Quote Link to comment
Michael Aivaliotis Posted January 7, 2019 Report Share Posted January 7, 2019 In this last post of the working snippet. can you explain how you added the image/snippet? I can't seem to reproduce your embed process. When I add an image it adds it and the name changes with an appended hash. it also changes the behavior so when you click it, it pops up in a viewer window. However, with your embed, the image retains its name and clicking it does nothing. Quote Link to comment
LogMAN Posted January 7, 2019 Report Share Posted January 7, 2019 (edited) Indeed, the location is different => https://lavag.org/applications/core/interface/file/attachment.php?id=13529 If you go to your profile (icon in the top right) and select "My Attachements", the files listed there show a different file location than the ones in posts. Here is mine from above: My Attachments https://lavag.org/applications/core/interface/file/attachment.php?id=13701 This one probably works (not tested, just a guess) Edit: it doesn't. Post https://lavag.org/uploads/monthly_2019_01/591079262_AccessingElementsinaFor-Loop_vi.png.739aeb22d70a5a697b28a8358c333ffb.png Edited January 7, 2019 by LogMAN Quote Link to comment
infinitenothing Posted January 7, 2019 Report Share Posted January 7, 2019 To clarify the second image was posted before the forum update. Here's the thread: https://lavag.org/topic/20671-programmatically-select-all-boolean-best-way-to-avoid-race-condition/?tab=comments#comment-125949 So, I'm guessing the forum is stripping the metadata on upload now. I reposted that image in this thread by copying the link into the editor box. The box "embedded" the image for me automatically. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.