retina.js console log error for non-retina images - console

I am using retina.js - http://retinajs.com/ and it's great however I have some images which aren't use #2x the size. On a retina screen there is obviously a console error trying the get the images which doesn't exists.
It says GET http://...nonretinaimage#2x.png 403 (Forbidden)
Is there a way to modify the js file to only get #2x size the image if they exist?
I am using this retina.js version to suit my images that are hosted on Amazons3 -
https://github.com/chrishunt/retinajs/blob/master/src/retina.js

Related

Can`t upload files in course Canvas LMS

When i go to course in Canvas LMS. And click Files -> Choose file to upload
But i ca`nt upload file. And website response Error: Request failed with status code 500
My Server: Ubuntu + Nginx
Thanks
Click here show my Image
Are you still suffer from the problem?
Have you checked your size limitation?
You might suffer from upload size restrictions.

On iOS devices only, black assets when programmatically creating assets. Works fine on any other browser

I am creating assets programmatically and would like to continue doing that. I know that the <a-asset> tag is preloading the data but I would like it created at load. For example (see URL below) the first link works fine creating it via javascript. On browsers, android phones, etc. it loads the assets just fine. When you load it up on iPhone the asset is blacked out. I assume only that the asset isn't loading. I tried playing with timeouts on assets but that does not seem to work. When you manually insert the <img> tag in the body, it will load the asset fine. The second URL shows that it works when I enter the data in statically.
A-Frame Version: 1.0.4
Platform / Device: iOS 13 - iPhone
Reproducible Code Snippet or URL: https://fork-secretive-princess.glitch.me/ and https://fork-secretive-princess.glitch.me/static.html

Images are not displaying in media library even though its name and alt text is showing

My website is not displaying any image, in console its giving "Failed to load resource: the server responded with a status of 404 (Not Found)" error, even though when I go to media library section, images are there but in blank and when I click to images its alt text is coming.
I have similar problem on staging website. First, I have delete .htaccess file then go to settings->permalinks->save changes. It will automatically create a new .htaccess file. Refresh your browser to see the changes.
Reference: https://wordpress.stackexchange.com/questions/2850/404-when-fetching-image-from-wp-content-uploads

400 Error on TimThumb

I'm testing a WordPress plugin that uses TimThumb.
On one server (GoDaddy) I'm getting a 400 (Bad Request) error whenever I request the timthumb.php file from the plugins directory. However, an identical request on a different server works just fine.
/wp-content/plugins/wp-vimeo/timthumb.php
I'm puzzled. I can request other files in the same directory just fine. Could it be a permissions issue? I would have expected a 403 if that were the case.
For Windows hosting add IUSR (or whatever account your app pool is running) to wp-content with read/write.
For me it was because my images were to be resized.
If you copy paste the timthumb url int the browser and receive the error that the image size is to big. I had to either change the file size of the images or change the timthumb's setting to handle bigger images.
This line in the timthumb.php file:
define ('MAX_FILE_SIZE', 3000000); // file size limit to prevent possible DOS attacks (roughly 3 megabytes)
I fixed it by moving my site from a Window Server to a Linux Server. Still on godaddy. [a]
Inside timthumb.php you'll find this line:
header ($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
This is triggered whenever there's an error: inaccessible cache, required query string variables missing, etc. I have found that link checkers like Google Webmaster Tools and Integrity sometimes remove the query string and check the validity of the root files. Of course without the query string timthumb.php will then return the 400 error.
To tidy this up I comment out the above line.
These answers don't seem to address the issue directly. You can paste the URL in of the timthumb call. In your browser you should get diagnostic error form timthumb. Usually it is because there is not a writable cache directory for timthumb to use to make the Image it serves.

not getting images displayed after uploading asp.net application

hai,
i am getting the images in my localhost.But when i am uploading my project the images are not displayed.
I am saving my images in "~/App_Themes/darkOrange/images/button_line.jpg".
Is their is another method for giving image path in ASP.Net.
please help.
thank you.
Yes - check what is actually getting rendered out in the "src" attribute for the images. See if you can physically get to that file, if you cant, means the webpage cant. Have you confirmed the images have been deployed to the web server (not local - the server you uploaded to).
If not, make sure the "Build Action" for the images are set to "Content" in the properties window in Solution Explorer.
I faced a similar problem once. But, that was just a static website. Where the images were displayed in localhost but when I ftp files to the server, the images wouldn't show.
Later, I found out that it was becasue of the different case. For e.g - The image file name was "Image.JPG" and I had used "Image.jpg" in my code
Just check if this helps.

Resources