organic compounds
2-{3-Cyano-4-[4-(N-formylanilino)-trans-1,3-butadienyl]-5,5-dimethyl-2,5-dihydrofuran-2-ylidene}propanedinitrile, C22H18N4O2, (I), and 2-{3-cyano-4-[6-(N-formylanilino)-trans,trans-1,3,5-hexatrienyl]-5,5-dimethyl-2,5-dihydrofuran-2-ylidene}propanedinitrile, C24H20N4O2, (II), show the alternating single/double-bond behaviour of push–pull chromophores. In the two structures, the planar polyene chains are twisted with respect to the furanylidene ring by 18.2 (2) and 12.4 (2)°, respectively. Comparison with structures of related and parent molecules shows subtle but consistent bond-length variations consistent with charge-delocalized structures. Crystal cohesion is provided by various sets of hydrogen bonds, viz. C—HmethylNcyano and bifurcated (C=C—H)2O=C in (I), and C—Hmethyl/phenylO and C=C—HNcyano in (II).