Rosetta Code:Village Pump/Image uploads: Difference between revisions

no edit summary
mNo edit summary
No edit summary
 
(18 intermediate revisions by 8 users not shown)
Line 55:
 
:I am working on Piet examples for this site, but I see that I cannot upload any images. Even larger programs would not need that much space, especially if one uses compressed PNG files. And I am not talking about huge Piet programs like “Pietquest” that wastes a lot of image space due to the structure of the compiler it was created with. What do I do now? Is there any possibility to upload pictures?
:Just as an example: The Piet program for the Integer Sequence task [Rosettacode link:http://rosettacode.org/wiki/Integer_sequence] needs only 964180 bytes at a codel size of 20. The image itself is only 140x60 pixels (7x3 codels) large. You can have a look at it here: [Image:https://copy.com/TQuwy3dwBRl7nEOL] (--[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 21:58, 26 June 2015 (UTC)
:: Small images can be rendered as a wiki table. This is not ideal, since actual image formats are more compact. However, it works around the current restrictions (which we can thank our friendly neighborhood spammers for). For an example of an image rendered this way, see [[Mandelbrot_set/J/Output]]. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 22:06, 7 July 2015 (UTC)
:::Thank you, Rdm. It’s certainly feasible for small images, although manual editing is a bit tedious, even for this example(binary digits): [[http://rosettacode.org/wiki/Binary_digits#.7B.7Bheader.7CPiet.7D.7D]] --[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 15:42, 10 July 2015 (UTC)
:::: Yeah, if you were doing a lot of them, I'd suggest starting with a [[Bitmap]] implementation and then whatever other support you want from [[Raster_graphics_operations]] so you can read an image file. Once you have that, you could use imagemagick to convert to your supported file format. Then build a wiki-table renderer and use that for your Piet code. And I guess some of us should also start using one of the [http://www.dangermouse.net/esoteric/piet/tools.html piet interpreters] so we can see your code in action ... --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 01:47, 11 July 2015 (UTC)
::::: I‘m writing my own Piet interpreter in Julia, especially for debugging more complicated code. And I use npiet to check if my code works. The PietDev on Rapaping.com does not work according to specification because it does not use integer division, but every division operation produces a floating point value. Nevertheless it’s useful for creating smaller examples and stack inspection.
::::: I guess it’s time for me to write a PNG to wikitable translator of sorts. --[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 15:31, 11 July 2015 (UTC)
:::::: Done. I wrote a little Julia function that converts PNG files with codel size 1 to wikitables. The code is on my user page. --[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 02:06, 12 July 2015 (UTC)
 
== This is still a problem (June - July 2016) ==
Uploading images doesn't work for me at all.[[User:NNcNannara|NNcNannara]] ([[User talk:NNcNannara|talk]]) 12:23, 18 July 2016 (UTC)
:I went to [http://rosettacode.org/wiki/Special:ListFiles File list] and discovered that all file uploads are blocked since 6/2/2016, even admins have no uploads. Is it sort of technical glitch? Or result of fighting spam too hard?? I'm planning 3 new tasks with 7 pictures. Without picture uploads it is useless. Now this is an old Q (late June): Another interesting issue: Why nobody complains? --AnatolV 19:34, 21 July 2016 (UTC)
 
== This is still a problem (August 15, 2016) ==
Sure not working here. [[User:KenS|KenS]] Upload complains that the image is not the proper mime type, but it is. Neither jpg or png are accepted. Sure would like to add some images to my code -- it really helps the reader understand what the output should be. --[[User:KenS|KenS]] ([[User talk:Kens|talk]]) 02:06, 15 August 2016 (UTC)
 
== This is still a problem (July 2017) ==
'''@NNcNannara, KenS''': U r so naive guys... I've complaint about fake massages
many years ago! See [[User_talk:Short_Circuit|M. Mol page]]. LOL
Also, find there fake explanations and fake promises (this January). --AnatolV 19:38, 22 July 2017 (UTC)
 
== This is still a problem (December 2018) ==
'''@M. Mol''': Send me email please. I have a realistic suggestion: how to find a big sponsor
helping to upgrade RC servers. It helped my friend to upgrade dying website. --AnatolV 19:38, 22 July 2017 (UTC)
 
== Can't upload an image (July 2019) ==
I'm trying to upload my output for the "Munching Squares" task. The file is called xor_pattern_miniscript.png, 41 KB in size, but when I try to upload it I get errors like this:
 
<pre>Upload warning
 
Could not read or write file "mwstore://local-backend/local-public/5/5b/Xor_pattern_miniscript.png" due to insufficient permissions or missing directories/containers.
Could not store file "/tmp/phpK6HWOb" at "mwstore://local-backend/local-public/5/5b/Xor_pattern_miniscript.png".
Could not delete lock file for "mwstore://local-backend/local-public/archive/5/5b".
Could not delete lock file for "mwstore://local-backend/local-public/5/5b".
Could not delete lock file for "mwstore://local-backend/local-public/archive/5/5b/20190612175726!Xor_pattern_miniscript.png".</pre>
 
I'm not sure if this is the same problem discussed above, or something new. Any idea how I can upload my image? Or, should I just link to an image uploaded elsewhere? --[[User:JoeStrout|JoeStrout]] ([[User talk:JoeStrout|talk]]) 18:01, 12 June 2019 (UTC)
 
...And, it's still happening (same errors as above) as of today. [[User:JoeStrout|JoeStrout]] ([[User talk:JoeStrout|talk]]) 04:05, 10 November 2019 (UTC)
 
Having the same problem when trying to upload an image for Voronoi Diagram task. Upload is broken/disabled?
 
== External images? ==
I just discovered this: https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages - could that be enabled? There are four links at the bottom also worth review. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 06:04, 1 February 2021 (UTC)
7,794

edits