asikart / remoteimage

Asikart RemoteImage helps you manage Joomla CMS image and media files on local and remote FTP host.
http://ext.asikart.com/extensions/asikart-remoteimage.html
10 stars 11 forks source link

retrieving image dimensions #6

Closed healey closed 9 years ago

healey commented 10 years ago

Hello, I need to retrieve the image dimensions when I add a new one in a joomla article. I saw in remoteimage-admin.js this method for retrieving image url :

var img = new Element('img', { alt : e.name , src : elFinder.url(e.hash) , }) ;

What is the way to include dimensions when creating the new element, I tried to find the method but nothing worked :(

like this (for example) : var img = new Element('img', { alt : e.name , src : elFinder.url(e.hash) , dim : elFinder.?????(???) }) ;

Thanks a lot for your answer. Regards, Healey.

asika32764 commented 10 years ago

Hi,

Actually, I think it is impossible in current Remoteimage, because if we want to retrieve image dimensions, we have to get it from elFinder API, but elFinder do not return this information.

So we have to hack elFinder php filesystem class: https://github.com/Studio-42/elFinder/blob/2.x/php/elFinderVolumeLocalFileSystem.class.php

I don't want to hack elFinder in Remoteimage because it will cause upgrade issue when elFinder updated, so I also can't get image size.

Hope this information can help you.

Thank you.

healey commented 10 years ago

Thanks a lot for your answer. As I don't need to update remoteimage/elFinder I will try to hack elFinder in order to do what I need.

regards.

EDIT : /**

I think I could use this to retrieve information without hack elFinder.