http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692014-05-30T02:42:56ZTYPO3 ForgeTYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2186792014-05-30T02:42:56ZStefan Neufeindtypo3.neufeind@speedpartner.de
<ul></ul><p>Workaround for the moment that works whether img needs to be scaled (processed) or not:</p>
<pre><code>renderObj = IMG_RESOURCE<br /> renderObj {<br /> file.import.data = file:current:publicUrl<br /> file.maxW = 620<br /> stdWrap.wrap = &lt;img src=&quot;|&quot; width=&quot;620&quot;&gt;<br /> }</code></pre> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2187142014-05-30T11:56:20ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>AFAIK the fieldName property is required. Don't know if that is related though.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2187152014-05-30T12:00:43ZStefan Neufeindtypo3.neufeind@speedpartner.de
<ul></ul><p>Just found that I'm missing image-dimensions for other text-with-images as well. After clearing sys_file_metadata all is well, for a while.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2187182014-05-30T12:04:29ZStefan Neufeindtypo3.neufeind@speedpartner.de
<ul></ul><p>Clearing sys_file_metadata and running the scheduler-job "File Abstraction Layer: Extract metadata in storage" I get metadata written to the DB - but with 0x0 pixels. How come? :-(</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2187752014-05-30T17:36:13ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Are you using a local or remote storage?</p>
<p>Could test what for results getimagesize() give you for one of the files? As that is used the get the image dimensions.</p>
<p>See <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/Index/Indexer.php::extractRequiredMetaData()">https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/Index/Indexer.php::extractRequiredMetaData()</a></p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2187762014-05-30T17:37:13ZFrans Sarisfranssaris@gmail.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2206532014-06-18T07:09:53ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>the link above is unfortunately broken.<br />Same problem with image dimensions 0 for me.<br />We are using a local storage.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2206592014-06-18T09:08:59ZAlexander Opitzopitz.alexander@googlemail.com
<ul></ul><p>The link should be: <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/Index/Indexer.php#L220">https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Resource/Index/Indexer.php#L220</a></p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207092014-06-18T14:13:07ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>@Harald, are the dimensions 0 in both database (sys_file_metadate) and in the tag (html source) or only in the tag?</p>
<p>Btw, please do not use:<br /><pre>
file.import.data = file:current:publicUrl
</pre></p>
<p>but:<br /><pre>
file.import.data = file:current:originalUid // file:current:uid
</pre></p>
<p>The the current file record is used. Else the file is again fetched by identifier the old way</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207102014-06-18T14:40:17ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>@Frans: width and height are 0 in the table sys_file_metadata and in the html source code.<br />Gererating metadata with sheduler Task fills the table also with height and width equal 0</p>
<p>Your change in line file.import.data seems to solve the problem.<br />Thank you for your quick responce.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207162014-06-18T14:57:03ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>The metadata are only updated by scheduler if lastmodification date of file is newer than last_indexed of the corresponding sys_file record.</p>
<p>If you upload a new file in BE are the width and height of the new created sys_file_metadata record filled?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207182014-06-18T15:06:52ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>too early pleased.<br />clearing the cache next time same again.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207222014-06-18T15:56:24ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Are you sure the width and height of sys_file_metadata are empty?</p>
<p>Did you do a clean install of 6.2 or an update from 6.0/6.1.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207322014-06-18T17:47:22ZHarald Doldererdolderer@chad-service.de
<ul><li><strong>File</strong> <a href="/attachments/26961">screenshot.jpg</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/26961/screenshot.jpg">screenshot.jpg</a> added</li></ul><p>yes I'm sure.<br />See screenshot.<br />It's an update from 6.1.9</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207342014-06-18T18:05:37ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Did you run all upgrade wizards in install tool and remove all obsolete columns from sys_file etc?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207362014-06-18T18:32:29ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>yes, I tried, but there is another bug which prevents the update manager to finish.<br /><a class="external" href="https://forge.typo3.org/issues/59567">https://forge.typo3.org/issues/59567</a></p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207372014-06-18T19:03:56ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Could you check if the width and height column are still present in sys_file. That could cause your problems.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207442014-06-18T20:03:14ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>that's it. This columns are present in 6.1 and are missing in 6.2.<br />May I create this columns by hand or is there another solution?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207452014-06-18T20:13:06ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>see my comments for <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: Upgrade Wizard stops at ALTER TABLE index_fulltext ENGINE=InnoDB; (Closed)" href="http://forge.typo3.org/issues/59567">#59567</a> maybe you can proceed the upgrade then.</p>
<p>If you remove the columns by hand you lose all width and height values that are already in DB.</p>
<p>Btw. Columns should be missing in 6.2. These are move from sys_file to sys_file_metadata</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207482014-06-18T20:22:05ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><p>The columns are present in sys_file in 6.1 and will be migrated over to the new columns in 6.2 on the sys_file_metadata table.<br />So you don't need these columns anymore in 6.2 after they've been migrated.</p>
<p>It is important that your run the migration wizards right after switching the TYPO3 sources.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207522014-06-18T20:46:59ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>o.k,removing indexed search solves <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: Upgrade Wizard stops at ALTER TABLE index_fulltext ENGINE=InnoDB; (Closed)" href="http://forge.typo3.org/issues/59567">#59567</a>.<br />The upgrade manager is now running till the end.<br />But the main problem is still available.<br />Between Upgrading to 6.2.3 and now no sites and no content was created.<br />Nothing was installed in addition.<br />You think installed indexed search interferes the update?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207532014-06-18T20:52:52ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>The install tool database analyser doesn't show any columns to be deleted?</p>
<p>I find it strange that when you upload a new image the width and height in the new sys_file_metadata record are not set.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207552014-06-18T21:24:54ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>I didn't say this.<br />New uploaded images are displayed in the right way, but it is impossible for me to upload many hundred images again and connect them with the content elements or news records. The problem is: Images which are displayed in a right way in 6.1. have the dimensions 0 after updating to 6.2. <br />I think I try the update tomorrow without indexed search again and report here again.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207592014-06-18T22:09:53ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>Oh, I understood that also for new uploaded files width and height where 0.</p>
<p>Have a look ar <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Bug: Image size is 0 when not scaled (Closed)" href="http://forge.typo3.org/issues/46020">#46020</a> for some hint how to get width and height filled again.</p>
<p>But I think if you clear the column last_indexed of sys_file and run the fal indexer scheduler task (indexer not the metadata task) the width and height values of sys_file_metadata should be set/filled.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2207972014-06-19T13:32:42ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>unfortunately no.<br />importinig 6.1 database again and running the Upgrade withard again after patch7 from <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Metadata db insert fails due to NULL value (Closed)" href="http://forge.typo3.org/issues/57495">#57495</a> is installed solved the issue.<br />Now I am ready for a holiday. Thank's a lot for your help.<br />See also <a class="issue tracker-4 status-5 priority-4 priority-default closed" title="Task: Missing metadata entry impossible to regenerate. (Closed)" href="http://forge.typo3.org/issues/57545">#57545</a></p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2208022014-06-19T15:08:44ZFrans Sarisfranssaris@gmail.com
<ul></ul><p>So you weren't on latest version of 6.2?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2208172014-06-19T16:27:12ZHarald Doldererdolderer@chad-service.de
<ul></ul><p>I was on latest version 6.2.3 but I made the update from 6.1.9 to 6.2.3 comletly new (with the obove mentioned patch7 installed). This solves my issue. After upgrade manager has run the file dimensions are available and the images are displayed in the right way.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2349602014-11-03T15:12:51ZAlexander Opitzopitz.alexander@googlemail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>New</i></li></ul> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2433762015-01-06T13:40:39ZMathias Schreibermathias.schreiber@typo3.com
<ul><li><strong>Target version</strong> set to <i>7.1 (Cleanup)</i></li><li><strong>Sprint Focus</strong> set to <i>On Location Sprint</i></li></ul> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2441642015-01-11T12:01:53ZFrans Sarisfranssaris@gmail.com
<ul><li><strong>Category</strong> set to <i>File Abstraction Layer (FAL)</i></li></ul><p>Steffen can this issue be closed?</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2441772015-01-11T12:37:03ZStefan Neufeindtypo3.neufeind@speedpartner.de
<ul></ul><p>@Frans: I guess you meant me? I currently don't have the usecase at hand anymore, to easily test again against a recent version.</p> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2474722015-01-30T10:05:56ZFabien Udriotfabien.udriot@ecodev.ch
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul> TYPO3 Core - Bug #59216: Image dimensions (width/height) are 0 when not scaledhttp://forge.typo3.org/issues/59216?journal_id=2923702016-01-08T11:16:24ZAnja Leichsenring
<ul><li><strong>Sprint Focus</strong> deleted (<del><i>On Location Sprint</i></del>)</li></ul>