wordpress-mobile / WordPress-Editor-iOS

⛔️ [DEPRECATED] A reusable iOS rich text editor component.
GNU General Public License v2.0
1.06k stars 210 forks source link

crash when adding around 20 pictures #805

Open mick20 opened 8 years ago

mick20 commented 8 years ago

it seems that the memory is not enough when adding more pictures on iphone6. Is there any solution for editing plenty of pictures in this editor? for example, the way that the TableView reuse the cell?

SergioEstevao commented 8 years ago

Did you run to this problem using the sample app? Or using the WordPress app?

mick20 commented 8 years ago

Thanks for your reply. I run the sample app on my iphone6. When I added around 20 pictures, the app become very slow and I cannot do anything on that. It shows that the app occupied around 100mb memory... Is there any reusable solution as it said in the brief?

SergioEstevao commented 8 years ago

The editor uses a webview so there isn't any feasible way to use reusable views. One thing that could help is to use lower resolution images when adding them to the webview, at the moment the sample app uses the full resolution but that could be changed to user lower resolution images.

IsVivian commented 7 years ago

How to change lower resolution images?

SergioEstevao commented 7 years ago

@IsVivian are using the editor in a standalone app, or using it inside the main WordPress app?

If you are using it on the main WordPress app you can go to the Me section -> App Settings -> Image Size and reduce the size of the images that are used/upload in the app.

IsVivian commented 7 years ago

I have upload the image, but the image will disappear sometimes when I use "[self.editorView insertLocalImage:self.serviceImgURL uniqueId:self.imageID];" I don't know how to solve it.