Problems uploading images to existing products Magmi Magento - image

I am having an issue uploading images but clearing the image search path is not working to solve my issue. (Found in another post)
This is the error i get:
Image attributes processor v1.0.25 - error copying media/catalog/product/5/4/54402.jpg : download error,URL cmsdistribution.com/product-files/image/54402.jpg is unreachable
Image attributes processor v1.0.25 - error copying media/catalog/product/5/4/54402.jpg : download error,URL cmsdistribution.com/product-files/image/54402.jpg is unreachable
Image attributes processor v1.0.25 - error copying media/catalog/product/5/4/54402.jpg : download error,URL cmsdistribution.com/product-files/image/54402.jpg is unreachable
The media/catalog/product folder and everything below is set to 777 and the URL i am calling in the csv looks fine and i can find it in a simple browser (Seen 3 times above (once for image, small_image and thumbnail with the only other column in the sheet being sku))
Has anyone else played with image importing? Am i missing something?
I have had to remove the http www dot etc from the codes above as i am being caught out for spamming in the post

Try using the latest svn version of Magmi. The image processor had a "bug" for handling redirected images (checking only 200 response on HEAD request for download check).
The latest svn version has a fix for this.

Related

Nativescript Issue with Image URLs

Playground Test Link
When I use the local Images with (~), it is working. But when I change the relative path to URL(https://via.placeholder.com/150.jpg), it throws an error.
It is working for https://nativescript.org/assets/ns-logo_share_600x315.png but not for https://via.placeholder.com/150.jpg or https://via.placeholder.com/150.png or any else. How can I set it so that it can accept images from any server? Is it supposed to be a server related issue as I checked the headers and mostly all are the same.
As per the docs, we can dd URLs to Image tag but it is still not working. Please help me rectify this issue.
Error
[Galaxy Note8]: Error in downloadBitmap -
java.io.FileNotFoundException: https://via.placeholder.com/150.png
Tried all file types: jpg, png, jpeg, gif

error on loading url images in codename one app how can i solve this

Exception: java.lang.IllegalArgumentException - create image failed for the given image data of length: 1420
EncodedImage placeholder = (EncodedImage) initForm.theme.getImage("avater.png");
icon1 = URLImage.createToStorage(placeholder, "tyrion", "https://www.dropbox.com/s/52tu8jkqg1pikvw/jpeg?dl=1");
This seems to be a connectivity issue. I looked at the file and it's a 16k file yet you downloaded only 1,420 bytes so you got an error. I'm guessing that the link is redirecting and we get an HTML error page which is what you see.
It's also possible that this failed to you once and you're now still looking at the cached failed download.
The downloaded file should be in your .cn1 directory (assuming this is on the simulator) under the name "tyrion". First try to just delete it.
If this doesn't help look at it's contents, it could be an HTML error file.

.jpg file compression as a url parameter

I noticed that the following file from a website could compress the image depending on the size passed as parameters in the url.
This is the following url.
https://images.pexels.com/photos/207301/pexels-photo-207301.jpeg
and when passed as a parameter :
https://images.pexels.com/photos/207301/pexels-photo-207301.jpeg?w=440&auto=compress&cs=tinysrgb
it gives a smaller image.
Now what I did:
I downloaded the image uploaded it to my website:
http://auraquotes.com/images/pexels-photo-207301.jpeg
I also tried passing the parameters: http://auraquotes.com/images/pexels-photo-207301.jpeg?w=440&auto=compress&cs=tinysrgb
but nothing happened.
I wonder the reason?
That website is running a solution called imgix which handles the image request and the compression. Without imgix installed, you won't get the same effect.

MediaWiki InstantCommons file download error

My goal: I'd like to use an image from commons.mediawiki.org within a MediaWiki installation.
First I was trying to debug my InstantCommons configuration: Referring to files on commons.mediawiki.org failed for some reason. After activating various debugging options I learned that though general image download succeeded some kind of thumbnail followup request issued by the MediaWiki installation failed, which resulted into an overall error from the ForeignAPIRepo-Module.
As I can not deal with this error right now I thought I'd try something else as some kind of fallback: Download the MediaWiki image by specifiying the image URL in the upload image web page. The idea is to let MediaWiki download the image and include this image as regular wiki content. This way I would require to add license details manually and add a few comments, but this would be better than having no image.
But trying this I strangely get an error: It says "Fehler beim Senden der Anfrage" which means "Error while sending the request". But the internal request seems succeed in the logs. Here is what MediaWiki was logging:
[fileupload] Temporary file created "/tmp/URLdafce5345aa3-1"
[fileupload] Starting download from "https://upload.wikimedia.org/wikipedia/commons/c/c7/Broccoli%2C_Champignons%2C_Karotten_%2810581663524%29.jpg" <followRedirects>
[fileupload] <Error, collected 1 error(s) on the way, integer value set>
+------+---------------------------+------------------------------------------+
| 1 | http-request-error | |
+------+---------------------------+------------------------------------------+
[fileupload] Download by URL completed with HTTP status 200
Comment: All other log messages do not indicate anything that looks like an error or is related to the task of downloading the image, so I skipped them here.
The URL is correct, the image can be downloaded from the URL, MediaWiki receives a response code of 200, but instead of processing the response it indicates an error. Why? For http and https URLs I get the same result in the log.
Has anybody encountered this problem before in MediaWiki installations? Does anyone have any idea what the reason for this behaviour could be?
Comment: The wiki is of version 1.25.2 and a standard installation including SWM on an up to date standard Ubuntu Linux OS. Nothing exotic, nothing modified in any way.
Comment: Yes, I could upgrade to the latest version but, I'm not sure if this really solves the problem: I know that this featured did work in some other MediaWiki installations I have set up some time ago. Does anyone have a clue why this feature could fail here? Has anyone encountered something like this before?
Edit: I experimented with downloading from another MediaWiki instance of exactly the same version - 1.25.2 - in my local network. This did not succeed as well. But I get a different error message (translated): "The file .... could not be stored at ...". The "funny part": Though the error message indicated otherwise the file has been downloaded successfully and stored as expected. It has the correct user rights as one would expect, but log messages indicate that there are bugs in MediaWiki regarding this part: ("PHP Notice: Undefined property: UploadFromUrl::$nbytes") Maybe the uploading implementation is buggy somehow and the problems I am running into are typical?
There are multiple bugs with HTTPS support in MediaWiki, php-curl etc. See https://www.mediawiki.org/wiki/InstantCommons#HTTPS for debugging information, there is no magic bullet.

Magento Magmi image processor errors

I have just started using the MAGMI image attribute processor and am having a few issues.
Initially, I was getting open_basedir errors, but I have (I think!!) temporarily disabled open_basedir for the domain.
Now however, I am getting the following:
error creating /media/catalog/product/d: 2,mkdir(): No such file or directory
for all the images being processed.
My configuration is as follows:
Server setup is on a Plesk 10 VPS.
Value for filesystem path in MAGMI: '/httpdocs'
Image processor local images store: 'media/import/'
Magmi version 0.7.17
Other posting by dweeves suggest a faulty value for filesystem path, however when I try and enter the full filesystem path into the field (i.e. /var/www/vhosts/domain.com/httpdocs) this is replaced with simply 'httpdocs' suggesting magmi knows its there already.
Any ideas??
If you are running this on a fresh magento install and have never added an image before, the "catalog/product" directory will not exist so you must create it. The image plugin assumes that is there.

Resources