exif reader for uploaded picture

  • something like the xenforo exif reader https://xenforo.com/community/resources/exif-reader.4717/

    have a good day

    not possible to add the exif of the picture near the name in the imageviewer ?

    the code is the same as gallery but it is not possible for me because i don't know java.

    somebody to help me ?

    have a good day

    I find this program https://www.bram.us/2016/02/19/exi…image-metadata/

    Code
    EXIF.getData(imageElement, function() {
       alert(EXIF.pretty(this)); 
    });

    for launch the exif javascript thus i must create a new button in the imageviewer javascript to launch the exif but where create it ?

    when i read imageviewer.js

    i find this

    Code
    keyDown: function(event) {
    		switch (event.which) {
    			// close slideshow
    			case $.ui.keyCode.ESCAPE:
    				this.close();
    			break;
    			// show previous image
    			case $.ui.keyCode.LEFT:
    				this._previousImage();
    			break;


    what the keycode for e and E ? 69 is the value for e and E ?

    where i can declare exif.js before the launch of imageviewer.js ?

    and the last question what is the variable for the full path and name of the picture active in the imageviewer


    Code
    case $.ui.keyCode.ENTER:
    				var $link = this._ui.header.find('> div > h1 > a');
    				if ($link.length == 1) {
    					// forward to image page
    					window.location = $link.prop('href');

    the full path is $link.prop('href') ?

    have a good day

    another solution , i see

    use the wcf/exifutil.class

    after each picture attachment make a line break
    the exif , brand , model ,iso, aperture , speed , focal and a new line break


    this is more easy to do ?

  • for the img , i find the solution

    i add this code and it is work


    for attachment , i have a great problem

    i want the true imagepath , where i can find it ?

    Code: Attachment bbcode .class.php
    $result = '<img src="'.StringUtil::encodeHTML(LinkHandler::getInstance()->getLink('Attachment', $linkParameters)).'"'.($imageClasses ? ' class="'.$imageClasses.'"' : '').' style="width: '.($attachment->hasThumbnail() ? $attachment->thumbnailWidth : $attachment->width).'px; height: '.($attachment->hasThumbnail() ? $attachment->thumbnailHeight : $attachment->height).'px;" alt="" />';

    give by exemple


    Code
    http://www.jpgforum.com/index.php?attachment/4112-07-03-03072016-ds8-5854-jpg/

    it is not the exact path for the image .


    Any help ???


    Thanks

  • thanks @Alexander Ebert

    this the final code for attachment
    attachmentbbcode.class


    the new code begin at line 7


    imagebbcode.class

    the code begin at line3


    you can see the result here http://www.jpgforum.com/index.php?thre…llons-virelles/

  • for woltlab3.0

    attachmentbbcode.classe.php

    the new code beign $imagepath1

    if somebody will make a plugin , it is a good idea , No idea in woltlab how made a plugin

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!