php - image resizing tinymce how to?

748

in a php page, I have implemented the famous tinymce, and I have been using this plugin (http://justboil.me/) for uploading images. For example, if you load a picture with width 1024 this will be printed in the textarea width with 1024. How do I auto-resize the image to 600px?

770

Answer

Solution:

I just had the same problem. It worked for me after I set the

$config['max_width'] = 600;

AND also

$config['max_height'] = 600;

in the config.php file

Note: You have to set both values to get the resize working. Even if you dont need to set the height, if one of the values is set to 0, nothing will be resized.

I found this information here.

People are also looking for solutions to the problem: php - PhpSpreadsheet: "Undefined offset" and "trim() expects parameter 1 to be string"

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.