Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

firefox doesn't display wordpress jpegs correctly

  • 2 відповіді
  • 1 має цю проблему
  • 1 перегляд
  • Остання відповідь від cor-el

more options

There are jpegs on my WordPress blog that will display fine when viewed as part of the main page, but when you try to view image it displays indecipherable text. I moved one image to a new non WordPress associated directory and it worked fine.

whole page

http://www.pediatricsafety.net/2015/10/food-allergy-fears-its-ok-for-your-child-to-try-something-new/

link that doesn't work

http://www.pediatricsafety.net/wp-content/uploads/2015/10/little-girl-tries-peanut-butter.jpg

image link that does work

http://www.pediatricsafety.net/tools/images/twitter-thumb.jpg

There are jpegs on my WordPress blog that will display fine when viewed as part of the main page, but when you try to view image it displays indecipherable text. I moved one image to a new non WordPress associated directory and it worked fine. whole page http://www.pediatricsafety.net/2015/10/food-allergy-fears-its-ok-for-your-child-to-try-something-new/ link that doesn't work http://www.pediatricsafety.net/wp-content/uploads/2015/10/little-girl-tries-peanut-butter.jpg image link that does work http://www.pediatricsafety.net/tools/images/twitter-thumb.jpg

Усі відповіді (2)

more options

hi, this will be a configuration issue on the server - it doesn't submit the right filetype ("Mime-type") information together with the data it sends, so the browser sin't aware that it should be rendered as a picture. you'd have to get in contact with the webmaster of this site and ask to get this issue addressed...

more options

The server sends the file as text/plain and that makes Firefox show the file as a text file.

You can use a data URI to display the link as an image file:

data:text/html,<img src='http://www.pediatricsafety.net/wp-content/uploads/2015/10/little-girl-tries-peanut-butter.jpg'>

You can create a new bookmark (name: Show as Image) with this data URI and set a keyword like 'img' to it.

  • data:text/html,<img src='%S'>

Then you can invoke the bookmarklet via the keyword and a space and the image URL appended. img http://www.pediatricsafety.net/wp-content/uploads/2015/10/little-girl-tries-peanut-butter.jpg

Змінено cor-el