Author Topic: Images  (Read 41499 times)

koan

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • http://www.lyndonhill.com
Images
« Reply #15 on: December 12, 2007, 04:11:12 am »
Excellent work, well done all.

Some thumbnails are missing because they have the wrong MIME type. Something must have got screwed up.
For example, https://www.oesf.org/index.php?title=Image:Sl6000.png has type text/plain. Coincidentally, that image info page has SPAM embedded in it
Zocalo Feed Reader : Thai on Zaurus : Dictionaries for zbedic : Sharp ROM package feed
HELUX Handheld Embedded Linux Blog
SL-C3200 Multiboot : SL-C750  Sharp ROM

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Images
« Reply #16 on: December 12, 2007, 04:52:16 am »
Quote from: koan
Excellent work, well done all.

Some thumbnails are missing because they have the wrong MIME type. Something must have got screwed up.
For example, https://www.oesf.org/index.php?title=Image:Sl6000.png has type text/plain. Coincidentally, that image info page has SPAM embedded in it
 Thanks for the help gaarder, well done David! I've just despammed the image you're talking about koan. I haven't got time to check if the thumbnail is now OK: the bathwater is running!!!  

Cheers
« Last Edit: December 12, 2007, 04:52:39 am by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

koan

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • http://www.lyndonhill.com
Images
« Reply #17 on: December 12, 2007, 06:05:04 am »
@tux

It was the image info page that has spam, not the image. There are other images that are the wrong MIME type without spam on their info page, that don't have thumbnails.
Zocalo Feed Reader : Thai on Zaurus : Dictionaries for zbedic : Sharp ROM package feed
HELUX Handheld Embedded Linux Blog
SL-C3200 Multiboot : SL-C750  Sharp ROM

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Images
« Reply #18 on: December 12, 2007, 12:14:13 pm »
Quote from: koan
@tux

It was the image info page that has spam, not the image. There are other images that are the wrong MIME type without spam on their info page, that don't have thumbnails.
 Thanks koan. I'll remember that next time. Do we have to download the 'wrong'file change the extension and reload them?Or is their a clever way of changing the type?

I'm afraid the bathwater is running as I post.  There is no spare time when you retire.
« Last Edit: December 12, 2007, 12:14:39 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

Meyer

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://papa.motd.org/cgi-bin/blosxom.cgi
Images
« Reply #19 on: December 12, 2007, 06:57:51 pm »
Images without thumbnails in the uploaded file gallery are all PNG files with MIME type text/plain. All of these also have a malicious code warning displayed on their Image:... page. Perhaps the warning is triggered by the mismatch between file extension and MIME type.

Also, I was unable to upload new PNG files. The wiki would show the error page:

Quote
The file is corrupt or has an incorrect extension. Please check the file and upload again.

I found a relevant MediaWiki FAQ and added the suggested variable $wgMimeDetectorCommand to our LocalSettings.php.

I can now successfully upload PNG images, which also get a proper thumbnail in the upload gallery.

However, this has not helped the previously uploaded PNG images. So far, I have been unable to find an automated fix. If worse comes to worse, or if someone needs to use one of the older images soon, the older images can be downloaded and reuploaded and that should fix them.
« Last Edit: December 12, 2007, 06:58:25 pm by Meyer »
David Meyer, Takarazuka, Japan
1. Zaurus iGeti MI-P10-S (retired)
2. "Liza" Zaurus SL-C860, Sharp ROM 1.31 JP R.I.P.
3. "Slee 2" Zaurus SL-C860, Sharp ROM 1.40 JP (retired)
4. "iZa" Zaurus SL-C1000, Sharp ROM 1.01 JP

koan

  • Sr. Member
  • ****
  • Posts: 370
    • View Profile
    • http://www.lyndonhill.com
Images
« Reply #20 on: December 12, 2007, 07:43:25 pm »
Quote from: Meyer
However, this has not helped the previously uploaded PNG images. So far, I have been unable to find an automated fix. If worse comes to worse, or if someone needs to use one of the older images soon, the older images can be downloaded and reuploaded and that should fix them.

Done.
Zocalo Feed Reader : Thai on Zaurus : Dictionaries for zbedic : Sharp ROM package feed
HELUX Handheld Embedded Linux Blog
SL-C3200 Multiboot : SL-C750  Sharp ROM

Meyer

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://papa.motd.org/cgi-bin/blosxom.cgi
Images
« Reply #21 on: December 12, 2007, 09:20:48 pm »
Thanks. Looks great.
David Meyer, Takarazuka, Japan
1. Zaurus iGeti MI-P10-S (retired)
2. "Liza" Zaurus SL-C860, Sharp ROM 1.31 JP R.I.P.
3. "Slee 2" Zaurus SL-C860, Sharp ROM 1.40 JP (retired)
4. "iZa" Zaurus SL-C1000, Sharp ROM 1.01 JP