as a school project I'm working on a small JavaFX text adventure. Because I'd rather not have a billion Images sitting around, I've been trying to find out how I can change the URL value of an Image so as to save valuable ram. I don't seem to be able to find anything, however. Does anyone know how to change an Image's URL?
IDE: Eclipse Oxygen + e(fx)clipse
Related
My WordPress website takes a lot of time to load pages, a problem that many of us face. I used GT metrix to check my WordPress page and then checked my website waterfall.
One thing I saw taking more than half time of my page is an image which is not uploaded in my website.
check this image of gt metrix waterfall:
I checked it, and I found this is an image which I have not used in my entire webpage. Also I could not find where is this image used.
Same thing happens in different pages that has different images to it.
I deleted one image from my media but now when I check the GT metrix waterfall I get a 404 error code which means its still trying to load that image and I cannot find it.
This is a theme which I had purchased and its not a popular theme like divi or ocean and hence could not contact the support.
How to check where a particular image is used in my webpage using
the media library (can I do that?)
How to find out and remove this image? Or at least is there a way where I can delete the image from the library and hence my webpage should not look for this image wasting its time instead of getting a 404 code
Your problem is quite common indeed, for your specific case i can suggest by starting to search the image name in both code + DB, it MUST be somewhere.
If you cannot find it inside your stuff there's only one answer left: there's some JS third party script that is loading that for you, but in this case i seriously dubt it would be in the same domain as your site.
Using the media library there's not much you can understand, if you are VERY lucky it will have a message like "attached to" but that thing cover like 10% of the cases, most of the time the image ARE used but are not attached to anything like a post, so the media library won't tell you anything
I've had this happen before a few times, too. Isn't it frustrating!? If you could provide a URL, I (and others, I'm sure) would be happy to take a look and try to figure out what's going on. :)
I'm not sure if this is a bug in Maya or if its an issue on my end- any insight would be appreciated.
I've got a button on a custom shelf. No issues there, it launches the script when clicked, has an annotation and a label, and generally works fine. However, the icon I've selected for it won't appear on the shelf. Instead, I get this:
Oddly enough, even after restarting Maya, the icon is visible in the Shelf Editor window:
So Maya is fully aware of the icon's path (it's a built-in Maya icon after-all) and is capable of displaying it- it just doesn't want to display it on the shelf.
To make matters even crazier, the custom shelf is being created and filled via a plugin that my company uses. As the tech artist, its my job to maintain this shelf, and so the plugin uses a shelf .mel file located in a network drive location, so that the tool can propagate the shelf to all the users on the network. On EVERY other users' machines, the icons are visible. It's only on my machine that they are not. Because of this, I feel that the plugin is not causing the issue. Naturally, all factors need to be considered, so I'm open to the possibility that it could be a problem with the plugin, but it seems odd that my machine would be singled out to have the icons not load on.
The final crazy thing: If I launch Maya the regular way rather than using my company's custom Maya launcher, the icons will not appear 50% of the time, but WILL appear the other 50% of the time. The same thing happens using the custom launcher. Sometimes, half of the buttons have their icons and half don't. It seems totally arbitrary whether Maya loads them or not. But every single time, the icons are visible in the Shelf Editor window.
I guess my question is: What could cause the icons to be visible in the Shelf Editor, but not on the shelf?
After a fair bit of experimentation, I've discovered that Maya does not like using some of its native icons as shelf icons.
I was able to fix the issue by identifying icons that will load every time, and using those.
If you have a particular Maya icon you really like, I recommend locating its file path, copying the image, and putting it somewhere outside of the Maya directory. For me, putting some of the images on our network drive did the trick, and all users were able to see the icons.
Unfortunately I wasn't able to determine why Maya wouldn't allow certain images to be visible on the shelf, and only on certain machines at that. I suspect it has something to do with the directory in which Maya is installed, and the Maya environment paths. But if you ever run into this issue, there are at least the above workarounds.
I use - (BOOL)addCachedImage:(UIImage *)image name:(NSString *)name API of WKInterfaceDevice to store images.
The issue is that most of the time, when I try to use those cached image by using setImageNamed: on WKInterfaceImage, I get this Unable to find image named XXX on watch error that results in an empty image on screen.
I insist on the fact that this does NOT happen all the time.
This occurs both on simulator and on device.
Go to Assets.xcassets in the Project Navigator on the left sidebar in XCode.
There choose the image that is not found.
For me it worked as soon as I had the image placed in the "2x" placeholder.
If you just import the images they are placed in the 1x spot, but the Apple Watches seem to need at least the 2x resolution. Just optimize your images and it will all work seamlessly.
I figured out that image names that are too long (character count > 255) lead to the bug. As soon as the image name used to cache the image is shorter, I don't get the error anymore.
Seems like an Xcode bug, I am facing this issue in Xcode 7 beta 4 but not in beta 2. I researched and experimented many things including various suggestions, and it turns out that if the images are set at Universal they are not getting picked up (http://iphone.tagsstack.com/unable_to_find_image_named_ldquo_xxrdquo_on_iwatch_error). However, if you select them separately for each of the watch size, they will show up and the issue is resolved.
I work on an application similar to Google event calendar.
Name of the application is My Team Event Calendar .
Developed this using jQuery Full calendar plugin.
In a calendar ,for each day ,i would display which teammember of mine is outofoffice(is an employee workfromhome/sick/vacation).
For each of this outofoffice status,i have an icon,displaying the purpose of it.
I have 72 around outofoffice statuses ,which would get icons source from database\
I have all 72 stauts with their associate image icon source in db as "images/pill.png"
Every time ,i get the information from server about a team .for each day i would get team member name,out of office status and image associated with the status.
Consider if my calendar is full for whole 31 days ,and for each day i would have about 10 employees. For each of this out of office status ,i would get a image (this means many http requests for image icons for out of office status).
Can you please suggest is it good to maintain css image sprite.But i have a disadvantage at any point of time a new leave type can be added with new image icon ,which imposes an immediate change in the image sprite.(maintaining/modifying an image sprite is not that easy)
If not image sprite can you please suggest what would be a better solution here
If I'm understanding your scenario correctly this would be an excellent place to use a sprite. A large set of small images is an ideal use case and using a single sprit will reduce HTTP traffic significantly. Sprites may seem like a little overhead initially but it's not bad once you get used to it and the performance is well worth the few extra minutes to compose the sprite.
Keep a PSD (or some other original source) for the sprite handy. When you need to make edits, add a new icon, etc. then update the PSD and export your new sprite PNG.
Another option to consider is icon fonts. You might look at something like Font Awesome, Bootstrap's Glyphicons or a tool like IcoMoon. Icon fonts have a lot of advantages, chiefly scalability and colorization. If you don't need that, though, sprites work just fine.
I know this is probably not the best SO question ever because I don't have the relevant code (I don't know where it is and I can't find it). If anybody has seen this problem before or knows what is causing this I can't tell you how much I would appreciate it.
I have a storefront and the images in the storefront are showing up rotated 90 degrees to the left for no apparent reason.
The actual source files of the images are normal, if you look at the actual .jpg used in on the site they are upright.
How or why would they be showing up rotated? Is this some setting or a bug in WooCommerce?
Note
Yes, I've disabled every addon and used only WordPress and WooCommerce and the result is the same. Different themes yield the same result as well.
I discovered the problem in case anybody stumbles across this later down the road. The issue is with Apple's exif data and rotation information they store within each image. It is apparently not compatible with most computers and when you upload a picture from a mobile device from Apple (ipad, iphone etc.) you are likely to experience this phenomenon.
There is little than can be done about it, shy of uploading the images to a computer and manually fixing the orientation of all rotated images before using them.