Regenerate thumbs in Prestashop - prestashop

I try to regenerate thumbs in PrestaShop™ 1.5.6.0 because of watermark. I have more than 6000 products. After the process I have got 90 errors like this:
Original image is missing or empty (.../domain/web/img/p/3/4/5/8/3458.jpg)
Images really don't exist.
Could someone help me?
Thanks for any help.

Probably a problem with the size of the images you upload. Try to resize them to below 1000x1000 before you upload. This might also be possible to resolve by changing the memory limit on the server.
Maybe you afterwards need to regenerate thubmnails using "images" > "regenerate thumbnails"

Related

MacOS/Safari double extensions when using ImageResizer

We are converting large PNG images to JPEG using ImageResizer (https://imageresizing.net/). It's works great with ?format=jpg and they are delivered with the correct content type and all.
When downloading these images they are named image.jpg in all browsers except Safari. Here it asks the user if they want to go with .jpg or with .png. It also saves the images as image.png.jpg which is confusing for some users.
I read something about Content-Disposition header, but I think that's for direct download, not for right click and choosing Save as. I also don't know if it would be possible to add it without creating some kind of middle layer and probably lose performance.
Ideas? Thanks <3
I don't think there is a solution to this, as it is in the browser's control.

How to resize images in nicEdit in chrome

i have a problem with nicEdit editor. Simply, i found out that resizing uploaded images does not work in Chrome, in FF yes. I tried this (resize images using NicEdit) but it doesn't work. I didn't find any other advices so i hope someone knows where is the problem.
I had the same problem, and came across this, add this to you nicedit.js:
var nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne.selectedInstance.selElm().parentTag("IMG");this.addForm({"":{type:"title",txt:"Add/Edit Image"},width:{type:"text",txt:"Width",style:{width:"150px"}},height:{type:"text",txt:"Height",style:{width:"150px"}},src:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},alt:{type:"text",txt:"Alt Text",style:{width:"100px"}},align:{type:"select",txt:"Align",options:{none:"Default",left:"Left",right:"Right"}}},this.im)},submit:function(B){var C=this.inputs.src.value;if(C==""||C=="http://"){alert("You must enter a Image URL to insert");return false}this.removePane();if(!this.im){var A="javascript:nicImTemp();";this.ne.nicCommand("insertImage",A);this.im=this.findElm("IMG","src",A)}if(this.im){this.im.setAttributes({width:this.inputs.width.value,height:this.inputs.height.value,src:this.inputs.src.value,alt:this.inputs.alt.value,align:this.inputs.align.value})}}});nicEditors.registerPlugin(nicPlugin,nicImageOptions);
comment out the original line, dont delete it, just incase something goes wrong. this worked for me anyways...

How to get the QLPreviewView's content size?

I would like to know how I can get the QLPreviewView content size? It seems that the API doesn't have any methods to get it. Thanks.
QLPreviewView won't give you that.
But since you are supposed to give QuickLook a path to reach files, you can get yourself size of them with file manager.
Take a look at this topic for example.

Wrong image path updating from prestashop 1.4 to 1.6

After two intense days of messing with Prestashop, I'm facing a problem, and my numerous searches gave nothing.
I have to update a prestashop ver. 1.4 to 1.6. Once I updated, product images won't show :
the website is looking for a path like this src="http://siteurl.com/86-home_default/arbre-a-chat-amelia.jpg...
But on our server, files are using another structure : http://siteurl.com/img/p/8/6/ etc...
I tried with and without "legacy mode" (I can't modify php safe mode). There's no sign of any "move" option in prestashop 1.6 admin, and tricks to made this button appear (on 1.5) won't work.
Is there any way to edit how images are found? After trying to update from scratch again and again, is this safer to "just" update to 1.5.x, and then 1.6?
I'm sorry if there is only few elements here, but any help is much appreciated and I'll do my best to explain missing points if needed.
I had got the same problem but updating from 1.4 to 1.5. My problem was that the new template of 1.5 uses images in this way *_default (home_default, small_default, etc). When I updated the images weren't shown because the path referenced was wrong. The solution for me was add "_default" in Preferences -> Images to every image type and then click in Regenerate images.
Somehow urls were broken, maybe from too much legacy mode switching... Neither friendly URL desactivation or image regeneration worked.
Managed to "workaround" this by copying an old backup on wamp, in order to have safe_mode off... Then, this "move images" button was here, and totally functionnal, with image regeneration and all I needed (I don't know why I haven't thought about it earlier...).
Thanks for your support !

iPad generating pdf crashes

I am trying to generate PDF reports with more than 300 pages from my app,but after long time the app is crashing without showing anything in the console, i am not getting memory warnings also, please help me to fix this issue.Thanks in advance
First of let me know ... what do you add in PDF.. i.e. can you add images ? or only text Please explain...if you can add images then it would be crash in 300 pages.. and it required Compress the image file size.. Let me know first of all..or possible to show your code.. i will help you...