Coder Social home page Coder Social logo

lochmueller / focuspoint Goto Github PK

View Code? Open in Web Editor NEW
22.0 10.0 23.0 1.69 MB

🌅 Smartest TYPO3 Crop Tool ever 🌅

Home Page: http://typo3.org/extensions/repository/view/focuspoint

PHP 69.84% HTML 16.60% CSS 3.35% JavaScript 10.20%
typo3 extension images typo3-extension

focuspoint's Introduction

Hi there 👋

My name is Tim and I am a PHP backend developer working for HDNET in Werther, Germany.

Some facts...

  • 🔭 I’m currently working on TYPO3 Extensions.
  • 🌱 I’m currently learning A-Frame.io for VR features.
  • 🤔 I’m looking for help with game design in TypeScript/A-Frame.io.
  • 💬 Ask me anything about TYPO3.
  • 📫 Your reach me via GitHub.
  • ⚡ Fun fact: I love playing games in the garden -> My Games

focuspoint's People

Contributors

benjaminbeck avatar bigbozo avatar cundd avatar cweiske avatar dkoether avatar etobi avatar jonnsn avatar kanti avatar lochmueller avatar marclindemann avatar marionitschke avatar mohsinqk avatar sascha-egerer avatar scrutinizer-auto-fixer avatar sirdiego avatar xerc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

focuspoint's Issues

filelist cache problem

typo3 7.6.16
focuspoint 2.1.4

There seems to be a cache problem when replacing an image. If a focuspoint was set afore, focuspoint wizard will keep loading the "old" image instead of loading the new (replaced) image. In frontend everythings works fine. However, setting the focuspoint without seeing the image your are "focussing" is quite unhandy...

The dynamic reference system within typo3 gains its power, as you can replace / rename / etc any file, as you like without necessarily touching referencing content elements afterwards.

That bug makes this powerful features of typo3 absurd.

Same image twice but different file_references with different FP-Coords on one page gets wrong FP coordinates

Hi, I use FP with the fp:image viewhelper:

<fp:image src="{author.picture.uid}" treatIdAsReference="1"
	 title="{author.title}"
	 alt="{author.title} {author.firstname} {author.name}"
	 realCrop="true"
	ratio="1:1"											  width="settings.list.media.imageAuthor.maxWidth}"											  height="settings.list.media.imageAuthor.maxHeight}"
/>

I generated two different file_references with different focuspoints set.
It looks to me, that FP image viewhelper takes the filereference id, then gets the originalRessource then gets the first filereference, so all instances of that image get the same FP-coords.
Changing FocusCropService.php->getViewHelperImage to

public function getViewHelperImage($src, $image, $treatIdAsReference)
{
   $resourceFactory = ResourceFactory::getInstance();
   $image = $resourceFactory->getFileReferenceObject($src);
   return $image;
}

fixed that for me, but this doesn't respect other viewhelper configurations than src=12 (id), treatIdAsReference=1.

"Check for broken extensions" fails

The function "Check for broken extensions" fails in the install tool with Focuspoint v2.0.0.

Pressing the Button leads to endless recursion of the call. Which fails with a server error 500.

PHP Fatal error: Call to a member function exec_SELECTgetRows() on null in /here_the_path_to webdirectory/web/typo3conf/ext/focuspoint/Configuration/TCA/Overrides/tt_content.php on line 20, referer: http://start.frontalprojects.ch/typo3/sysext/install/Start/Install.php?install[redirectCount]=4&install[context]=backend&install[controller]=tool

Could you reproduce this issue?

TYPO3 7.6.11
focuspoint 2.0.0
autoloader 2.1.5

Extension won't create DB-fields

I installed the Extension on Typo3 6.2.9 after that i have to add the database fields "focouspoint_x, focuspoint_y, ratio" manually.

Bug während des AJAX-Nachladens von Elementen

Hallo Tim,

ich bin über einen komischen Fehler im List- sowie im Page-Modul gestolpert: Wenn ich in einem bestehenden News-Datensatz unter Content Elements mehrere normale "Text & Media" ergänzt habe und nachträglich im entsprechenden News-Datensatz nun bei einem Bild einen Focuspunkt setzen will, schlägt dies mit der Alert-Meldung "Please save the base record first, because open this wizard will not save the changes in the current form!" fehl.

Ich habe mich an der Stelle ein wenig in den Code eingegraben und (äußerst wahrscheinlich) die Ursache gefunden: Wenn per AJAX ein Datensatz im List Modul nachgeladen wird, scheitert es in der focuspoint/Classes/Hooks/InlineRecord.php in Zeile 95 beim if mit isset($arguments['edit']):

Das $arguments-Array sieht bei einem AJAX Request im List Modul so aus:

Array (
    [ajaxID] => /ajax/record/inline/details
    [ajaxToken] => d8d0bcdb46bc31dc835a75dbfac5885b8ea037aa
)

Wird das Element direkt beim Seitenaufruf geladen, kommt dieses Beispiel-Array bei rum:

Array (
    [route] => /record/edit
    [token] => b3b7289b1c6d50dd6ccd76f6cb510ebd93563277
    [edit] => Array
        (
            [tt_content] => Array
                ( [30613] => edit )
        )
    [returnUrl] => /typo3/index.php?M=web_list&moduleToken=9f51c861ab652ac088768e92f1fc29654165aa92&id=2043&
    [L] => 0
)

Beispielhafte und reproduzierbare Anwendungsfälle im Listenmodul:

  • Listmodul: In einem Newsdatensatz mit mehreren zugeklappten "Text & Media"-Elementen in der "Content Elements"-Section
  • List-/Page-Modul: In einem GridElement mit mehreren zugeklappten "Text & Media"-Elementen sowie mit eigenen angelegten Contentelementen, bei denen Bilder gepflegt werden können

y-axis centered instead of position

TYPO3 9.5.14
composer req lochmueller/focuspoint:dev-master
ddev version v1.13.1

When setting a focal point, the y-axis is centered instead of focal position.

Backend Setting
focal1

Command
<fp:image image="{image}" width="1000c" height="400c" realCrop="true"/>

Frontend View
focal2

Cannot run typo3cms install:setup with focuspoint installed by composer

Running vendor/bin/typo3cms install:setup with lochmueller/focuspoint installed, install fails with:

[ Helhum\Typo3Console\Mvc\Cli\FailedSubProcessCommandException ]
Executing command "install:databasedata" failed (exit code: "1")  
                                                                
Caused by:
[ Doctrine\DBAL\Exception\TableNotFoundException ]        
An exception occurred while executing 'SELECT `uid` FROM `pages` WHERE (`is_siteroot` = ?) AND ((`pages`.`deleted` = 0) AND (`pages`.`hidden` = 0)) ORDER BY `sorting` ASC' with params [1]:  
                                                                                                                                                                                            
Table 'typo3.pages' doesn't exist                                                                                                                                                  

As soon as I remove lochmueller/focuspoint install:setup works as expected.

Tried using autoloader 6.2.1 as I did not know, if problem arises there, but focuspoint wants 6.0.6

Fatal error after activating focuspoint on TYPO3 7.6.10

When activating focuspoint on TYPO3 7.6.10 and PHP 7.0.8, the backend is broken with a fatal error:

Oops, an error occurred: Could not analyse class: "HDNET\Focuspoint\ViewHelpers\Uri\ImageViewHelper" maybe not loaded or no autoloader?

PHP Warning: Declaration of
HDNET\Focuspoint\ViewHelpers\Uri\ImageViewHelper::render($src = NULL, $image = NULL, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL, $treatIdAsReference = false, $ratio = '1:1')
should be compatible with
TYPO3\CMS\Fluid\ViewHelpers\Uri\ImageViewHelper::render($src = NULL, $image = NULL, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL, $treatIdAsReference = false, $crop = NULL, $absolute = false)
in /var/www/site/htdocs/typo3conf/ext/focuspoint/Classes/ViewHelpers/Uri/ImageViewHelper.php line 23

Parameters $crop = NULL, $absolute = false are missing in the focuspoint viewhelper.

I have to change the "exceptionalErrors" setting to not include that warning to solve that issue.

Respect jpg_quality

        $absoluteImageName . ' -crop ' . $cropCommand . ' -quality ' . ((int)$GLOBALS['TYPO3_CONF_VARS']['GFX']['jpg_quality']).' +repage ' . $absoluteTempImageName

Typoscript rendering GIFBUILDER inside GIFBUILDER does not work

The following TypoScript code will cause an uncaught Exception like

PHP Warning: imagecreatefrompng(/typo3temp/GB/dsv1_7d529b1517.png): failed to open stream: No such file or directory in /path/to/webroot/TYPO3.CMS/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php line 2952

myImage = IMG_RESOURCE
myImage .file = GIFBUILDER
myImage .file {
	XY = [10.w],[10.h]
	format = jpg
	quality = 80

	10 = IMAGE
	10.file = GIFBUILDER
	10.file {
		XY = [10.w],[10.h]
		format = png

		10 = IMAGE
		10.file = EXT:references/Resources/Private/Images/iMac.png
	}
}

The problem seems to be the wrong path given to imagecreatefrompng (the path to the webroot is missing as far as I can see).

PHP: 7
TYPO3 CMS: 7.6.16
OS: Ubuntu 16.06.2 LTS

Responsive Header IMG with pure CSS

Hi Tim,

according to the newly submitted pull request i want to share the correponding TS. The header files are integrated inwards the page relations in three different sizes. Additional CSS for the image container has been set to:

.bgimg {
    width: 100%;
    height: 600px;
    display: block;
}

The Integration is done by TS inlineCSS like so:


page.cssInline {

    // needed to let dataWrap 
    // recognize curly brackets
    1 = LOAD_REGISTER
    1.curl1 = {
    1.curl2 = }

    // <source>
    10 = FILES
    10 {

        // get the reference from pages > media
        references {
            table = pages
            uid.data = page:uid
            fieldName = media
        }

        renderObj = IMG_RESOURCE
        renderObj {

            // import file
            file.import.data = file:current:uid
            file.treatIdAsReference = 1

          stdWrap.dataWrap.cObject = CASE
          stdWrap.dataWrap.cObject {

            // get files by sorting num
            key.data = register:FILE_NUM_CURRENT

            // sm
            0 = TEXT
            0.value = background-image: url(|); 
            0.postCObject = TEXT    
            0.postCObject.value = background-position: left {fp:xp_positive}% top {fp:yp_positive}%;
            0.postCObject.if.isTrue.data = fp:xp
            0.wrap = .bgimg {register:curl1} | {register:curl2}

            // md
            1 < .0
            1.outerWrap = @media only screen and (min-width: 600px) {register:curl1} | {register:curl2} 

            // lg
            2 < .0
            2.outerWrap = @media only screen and (min-width:1024px) {register:curl1} | {register:curl2} 

          }
          stdWrap.wrap = /|

      }

        begin = 0
        maxItems = 3

        stdWrap.outerWrap ( 
            /* background-image with focus point*/ 
                |
            /* */ 
        )

    }

}

Make Focuspoint-Crop available via TypoScript (fe. height=300f width=500f )

Focuspoint-Data can already be used in TypoScript like this:
width = 500c
width.stdWrap.dataWrap = |{file:current:focus_point_x}

But there are 2 small issues:

  1. y-axis must be inverted, but works like this:
    height =
    height.wrap = 300c|
    height.stdWrap.dataWrap = |(-1)*{file:current:focus_point_y}
    height.prioriCalc = 1

  2. The focuspoint doesn't get centered like in the preview. Apparently the TypoScript-standard-crop-move-method differs from the focuspoint-method.

Remove autoloader dependency

focuspoint depends on the autoloader extension, which adds a whopping 7.3 MiB (51k LOC PHP) to our TYPO3 installation.

I'd rather not have all the zend classes here just because the used array merge method is also in that package.

Add same UnitTests

Example...

<?php

namespace AppBundle\Tests\Service\Imagine;

use AppBundle\Service\Imagine\FocusPointHelper;

class FocusPointHelperTest extends \PHPUnit_Framework_TestCase
{

    /** @var FocusPointHelper */
    protected $helper;

    protected function setUp()
    {
        $this->helper = new FocusPointHelper();
    }

    /**
     * @return array
     */
    public function providerFocusBoxSize()
    {
        return [
            [
                100,
                0,
                '1:1',
                3644,
                2397,
                2397,
                2397,
            ],
        ];
    }

    /**
     * @dataProvider providerFocusBoxSize
     *
     * @param int    $focusX
     * @param int    $focusY
     * @param string $ratio
     * @param int    $imageWidth
     * @param int    $imageHeight
     * @param int    $expectedWidth
     * @param int    $expectedHeight
     */
    public function testFocusBoxSize($focusX, $focusY, $ratio, $imageWidth, $imageHeight, $expectedWidth, $expectedHeight)
    {
        $expected = [
            $expectedWidth,
            $expectedHeight,
        ];

        $this->assertEquals($expected, $this->helper->getFocusWidthAndHeight($imageWidth, $imageHeight, $ratio));
    }

    /**
     * @return array
     */
    public function providerFocusSourcePoint()
    {
        return [
            [
                100,
                0,
                '1:1',
                3644,
                2397,
                1247,
                0,
            ],
        ];
    }

    /**
     * @depends      testFocusBoxSize
     * @dataProvider providerFocusSourcePoint
     *
     * @param int    $focusX
     * @param int    $focusY
     * @param string $ratio
     * @param int    $imageWidth
     * @param int    $imageHeight
     * @param int    $expectedX
     * @param int    $expectedY
     */
    public function testFocusSourcePoint($focusX, $focusY, $ratio, $imageWidth, $imageHeight, $expectedX, $expectedY)
    {

        $expected = [
            $expectedX,
            $expectedY,
        ];

        list($focusWidth, $focusHeight) = $this->helper->getFocusWidthAndHeight($imageWidth, $imageHeight, $ratio);

        $this->assertEquals(
            $expected,
            $this->helper->calculateSourcePosition(
                $imageWidth,
                $imageHeight,
                $focusWidth,
                $focusHeight,
                $focusX,
                $focusY,
                $ratio
            )
        );
    }

    /**
     * @expectedException \LogicException
     * @expectedExceptionMessage Ratio have to be in the format of e.g. "1:1" or "16:9"
     */
    public function testRatioException()
    {
        $this->helper->getFocusWidthAndHeight(100, 100, '11');
    }

}

No focuspoint button for file references

Hi Tim,

i have the issue that the focuspoint button for file references is not being displayed.
Everything else seems to work, like the buttons in Metadata > Categories or in the filelist.

The problem appeared on TYPO3 8.7.3

Best regards
Florian

Follow semver

I noticed that the versioning of this extension does not follow semver, the latest release (2.1.4) states that it drops support for TYPO3 6.2. In semver this would mean that the version should've been 3.0.0 instead.

Please consider switching to semver to support reliable and predictable updates.

createTempSubDir not found in v9

Hi,

i think this api call was removed in v9.

Oops, an error occurred!
Call to undefined method TYPO3\CMS\Frontend\Imaging\GifBuilder::createTempSubDir()

It is used in the CropService.php at line 163.

Regards,
Tobias

Errors in Backend and Frontend

Hi
i got the following errors:
Undeclared arguments passed to ViewHelper TYPO3\CMS\Fluid\ViewHelpers\Be\ContainerViewHelper: loadJQuery. Valid arguments are: pageTitle, includeCssFiles, includeJsFiles, addJsInlineLabels, includeRequireJsModules
->Solution: in EXT:focuspoint/Resources/Private/Templates/Wizard/Focuspoint.html Line 3 delete: loadJQuery="0"
to solve this error.

If I do this, the backend seems to work.
But in the frontend there is still this error:
Argument 1 passed to HDNET\Focuspoint\Service\DimensionService::getRatio() must be of the type string, null given, called in /htdocs/typo3conf/ext/focuspoint/Classes/Xclass/LocalCropScaleMaskHelper.php on line 76

I think the problem is here: $currentRecord = $GLOBALS['TSFE']->currentRecord; Line 106
$currentRecord is NULL and this leads to the error.

Inline JS, initial call

Hey Tim,
I think this line
jsFooterInline.1001.value = $(document).ready(function(){ $('.focuspoint').focusPoint(); }); have to be modified to:
jsFooterInline.1001.value = $(document).ready(function(){if($('.focuspoint').length) { $('.focuspoint').focusPoint(); } }); ?
Because otherwise it runs in error on pages without .focuspoint images. What do you think?

Error when using Text&Media and focuspoint extension

I installed the dev-master of the focuspoint extension and now get the following error:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function exec_SELECTgetRows() on null | Error thrown in file /srv/www/vhosts/.../public/typo3conf/ext/focuspoint/Classes/Service/TcaService.php in line 60. Requested URL: http://server/typo3/index.php?route=%%2Frecord%%2Fedit&token=--AnonymizedToken--&edit%%5Btt_content%%5D%%5B10%%5D=new&defVals%%5Btt_content%%5D%%5BcolPos%%5D=0&defVals%%5Btt_content%%5D%%5Bsys_language_uid%%5D=0&returnUrl=%%2Ftypo3%%2Findex.php%%3Froute%%3D%%252Fweb%%252Flayout%%252F%%26token%%3D70d1d0155b2e92187105f99afb83a48806951826%%26id%%3D10&defVals[tt_content][CType]=textmedia&defVals[tt_content][tx_gridelements_columns]=0

Maybe this is an configuration issue. I also get some hints from TCA Migration check, that TCA entries should be updated but I do not know where to do this.

Best regards
Thomas

External storage support

The displayableImageUrl method always prefixes the image url with the TYPO3_SITE_URL. If an external storage like Amazon S3 is used this won't work because the Amazons S3 url differs from the TYPO3 site url.

A solution could be to add a check in the displayableImageUrl method if the image url already is a valid url.

if(filter_var($url, FILTER_VALIDATE_URL)) {
    return $url;
}

return GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . \ltrim($url, '/');

I tried to create a branch to create a pull request, but I have no permission to do so.

PNG24 Tansparent Background is not preserved

if the source image of the fp:image - ViewHelper is PNG24 with transparent background / alpha layer, this transparancy is NOT preserved when cropping/resizing with the FocusCropService.

Reason is u are not using the GIFBuilder but the underlying GraphicalFunction class directly.
Thus the steps in GIFbuilder to preserve the alpha transparency are NOT executed.

Plz fix.
Thx

Wrong link generation in backend for save button in FocusPoint Backend Module

Not sure if this is a FP issue:
I create a new News, assign a media image, save the news, click the FP icon aside of the image. The save icon has a wrong link:
http://xxxxxxx.de/typo3/index.php?route=%2Fwizard%2Ffocuspoint&token=7ab061e02975c9a8ba8532bcb94198a66c42cac6&save=1&P%5BreturnUrl%5D=%2Ftypo3%2Findex.php%3Froute%3D%252Frecord%252Fedit%26token%3D38a31529480c16516d28d8fe9361232ab0ef8d48%26edit%255Btx_news_domain_model_news%255D%255B2%255D%3Dnew%26returnUrl%3D%252Ftypo3%252Findex.php%253FM%253Dweb_list%2526moduleToken%253Dd762007c74250f23f5d2e74f075a55e613cfbb2e%2526id%253D2%2526imagemode%253D1&P%5BreferenceUid%5D=11284
After clicking save a new news is created instead of returning to the current news.
Slightly changeing the workflow genarates the correct link:
Create a new News, save the news, assign a media image, click the FP icon aside of the image:
http://xxxxxxx.de/typo3/index.php?route=%2Fwizard%2Ffocuspoint&token=7ab061e02975c9a8ba8532bcb94198a66c42cac6&save=1&P%5BreturnUrl%5D=%2Ftypo3%2Findex.php%3Froute%3D%252Frecord%252Fedit%26token%3D38a31529480c16516d28d8fe9361232ab0ef8d48%26edit%255Btx_news_domain_model_news%255D%255B29184%255D%3Dedit%26returnUrl%3D%252Ftypo3%252Findex.php%253FM%253Dweb_list%2526moduleToken%253Dd762007c74250f23f5d2e74f075a55e613cfbb2e%2526id%253D2%2526imagemode%253D1&P%5BreferenceUid%5D=11283

Make compatible with TYPO3 8.x

The extension is marked as compatible with TYPO3 8.1 but it is not as it uses a function (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath()) that was deprecated in TYPO3 7 and is removed in 8.

Focuspoint Extension hat in TYPO3 7.6.2 Probleme mit .tiff Bildformaten

Hallo Tim,

anbei im anhang.zip die Testdatei von dem Dateiformat tiff, sowie die Fehlerscreens. In dem ersten Screenshot taucht die Vorschau der Tiffdatei nicht auf, während in dem zweiten Screenshot man sieht, das die TYPO3 Preview Function die Tiff Bildformate rendert. Getestet wurde das mit dem TYPO3 Default Image Element.

Hoffe das hilft weiter.

anhang.zip

error when cs_seo is installed

BE error when focuspoint and cs_seo 2.0.0 are installed:

Argument 2 passed to HDNET\Focuspoint\Hooks\GetData::getDataExtension() must be of the type array, null given, called in /kunden/308915_57627/pap/11855/34/typo3cms/huf_2016/typo3_src-7.6.15/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 6069

with cs_seo 1.8.x it worked.

tx_news module in combination focuspoint

If i create a new news-record (unsaved) and chose a news Mediafile, set the Focuspoint and save it i got a empty window -> the news-record won't be saved.

Version: typo3 6.2.9
Browser: Chrome

There should be a check on FileInterface instance

Hi,

I am using focuspoint in one of my projects. I was using its old ver and then i updated today and it gave fatal error. there is a function in FocusCropService class named as getCroppedImageSrcByFile and what it does it calls $file->getForLocalProcessing(false) which gives error because in $file there is object of TYPO3\CMS\Core\Resource\Folder and Folder or FolderInterface has no method named as getForLocalProcessing. so there should be a check something like https://github.com/lochmueller/focuspoint/blob/master/Classes/Service/FocusCropService.php#L57 would solve the problem i think. if you want a PR from me?

Interface 'TYPO3\CMS\Backend\Form\DatabaseFileIconsHookInterface' not found in Version 3.1.1

After installing via composer and enabling the extension I get the messeage
Fatal error: Interface 'TYPO3\CMS\Backend\Form\DatabaseFileIconsHookInterface' not found in /srv/www/vhosts/kigawaldorf/public/typo3conf/ext/focuspoint/Classes/Hooks/GroupItem.php on line 22
in both backend and frontend.

According to Typo3 changelog, this Interface has been dropped in v9.0 (https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.0/Breaking-80700-DeprecatedFunctionalityRemoved.html)

FileReference is always 0 (zero) and not NULL

Hi, I tried to install the extension focuspoint and got am error. My problem is: The merged properties in file_reference is always 0 (zero). Even when in metadata the values are correctly set.

I discovered that the reason is the \TYPO3\CMS\Core\Resource\FileReference::restoreNonNullValuesCallback method, which checks the original values and if the original value was not null it will revert the merged value to 0 (zero), which is not null.

So I am a little bit curious, because for me it looks like, that the whole extension is currently not working (using latest TYPO3 7.6). Do you have any hint for me, to get the focus_point_x and _y correctly merged?

Thanks in advance!

Uncaught TYPO3 Exception: getCroppedImageSrcByFile

Hi,

after clearing all the caches from the backend I receive this error:

Argument 1 passed to HDNET\Focuspoint\Service\FocusCropService::getCroppedImageSrcByFile() must implement interface TYPO3\CMS\Core\Resource\FileInterface, instance of TYPO3\CMS\Core\Resource\Folder given, called in /var/www/vagrant/htdocs/typo3conf/ext/focuspoint/Classes/Service/FocusCropService.php on line 86

TYPO3: 8.7.10
EXT focuspoint: 3.0.3
EXT autoloader: 5.0.1
PHP 7

When I call the page a second time the error disappears and the page is loaded.
Somehow the focuspoint is called before the images within the processed folder are generated.
After debugging the function
/ext/focuspoint/Classes/Service/FocusCropService.php:86
$file = $this->getViewHelperImage($src, $image, $treatIdAsReference);
return $this->getCroppedImageSrcByFile($file, $ratio);

$file returns an folder instead the images.

Any ideas?

Thank you!
Regards,
Ivaylo

Percentage values

Would it be possible to have direct access to the percentage values in the near future?

In a way that you can easily use it for pure CSS with TS, so that no focuspoint frontend plugin is needed, just the backend module? like …

page.cssInline { 
    ...
    renderObj = IMG_RESOURCE
    ...
    0.postCObject.value = background-position: left {fp:wp} bottom {fp:yp};

Many thanks in advance
Martin

Wizard icon not available in search

When you search for a image name in the filelist module, the wizard icon is not added in the resultlist. (0 or more results)

TYPO3 7.6.23
(latest avail. versions for 7.x branch of autoloader + focuspoint ext)

SQL error after save image

Hey, i've installed the extension via composer. After setting a focus point and saving, nothing happens. When i set the coordinates in image settings it gets me this error:
2: SQL error: 'Unknown column 'focus_point_y' in 'field list'' (sys_file_metadata:84)

How does the additional fields from your extension are added without an ext_tables.sql? What am i doing wrong? Please help :)

I'm using TYPO3 7.6.10.

Best regards, Anna

abandon use of limited gdlib-image-functions - add TIFF etc. support

Hi,

this is also related to the PNG-24 issues i posted.
Why dont you use the TYPO3 standard-way for manipulation images via the GIFbuilder-"engine"? This way, imagemagick will get involved in the correct way. What you do is working on gdlib lib functions, which are very limited when it comes to modern-style graphic manipulation/rendering like PNG-24 and other non-web formats as input

Fatal Error Autoloader nach Installation

Nach der Installation unter TYPO3 CMS 6.2.13 kommt es zu folgendem Fehler:

Detected Fatal Error
Class 'HDNET\Autoloader\Loader' not found in /var/www/typo3_629/typo3conf/ext/focuspoint/ext_localconf.php on line 7

Fehlen hier eventuell Abhängigkeiten in der ext_emconf.php?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.